Top "Sh" questions

sh is the standard Unix shell since Version 7 Unix.

Pipe output to environment variable export command

I'm trying to set a git hash value into an environment variable, i thought it would be as simple as …

sh
Shell script: Run function from script over ssh

Is there any clever way to run a local Bash function on a remote host over ssh? For example: #!/bin/…

linux bash shell sh
Replacement for source in sh

I need to set the environment variables, usually we do this by source script.sh But now, I am automating …

bash shell sh
How to get the process id of command executed in bash script?

I have a script i want to run 2 programs at the same time, One is a c program and the …

linux bash shell sh systemd
move only if file exists in a shell script

As part of a backup script I want to call mv on a file to rename it: mv example.txt …

linux sh mv
How to get /etc/profile to run automatically in Alpine / Docker

How can I get /etc/profile to run automatically when starting an Alpine Docker container interactively? I have added some …

docker sh ash alpine
Set JAVA_OPTS in JBOSS standalone.sh file

I have an app on jboss which logging through log4j. When I running my server through bat file (standalone.…

jboss sh java-opts
Are shell scripts sensitive to encoding and line endings?

I am making a NW.js app on Mac, and want to run the app in dev mode by double-clicking …

bash shell sh
how to write a process-pool bash shell

I have more than 10 tasks to execute, and the system restrict that there at most 4 tasks can run at the …

bash shell multiprocessing sh multiprocess
Dash double semicolon (;;) syntax

I'm tried to find way to run multiple commands in parallel in sh and wait for it completion. I've found …

syntax sh dash-shell