Top "Sh" questions

sh is the standard Unix shell since Version 7 Unix.

Argument passing in .sh scripts

I have a shell script foo.sh which is a qsub job with content: #!/bin/bash -l #$ -S /bin/bash #$ …

shell parameter-passing options sh qsub
What is the difference between $(command) and `command` in shell programming?

To store the output of a command as a variable in sh/ksh/bash, you can do either var=$(command) …

bash shell ksh sh
Comparing variables in shell scripts

I have got a project that involves shell scripts and comparing values/variables within them. I have looked here and …

shell scripting sh ksh solaris-10
echo >&2 "some text" what does it mean in shell scripting

I have seen echo being used like this in many places: echo >&2 message text ... What does this mean? …

shell unix sh
Bash: evaluate a mathematical term?

echo 3+3 How can I evaluate such expressions in Bash, in this case to 6?

bash math sh evaluation
How can I create .sh extension file in Linux Ubuntu?

I'm trying to write a script to run one of my .jar files as daemons, but I am not understanding …

linux ubuntu sh daemons
Linux: Run a binary in a script

i want to run a program via script. normally i type ./program in the shell and the program starts. my …

linux shell cd sh
What's the root cause of error "Failed dependencies: /bin/sh is needed by xxx" on RHEL?

When I install a rpm package on RHEL using rpm, I got a error message just like "Failed dependencies: /bin/…

sh rpm rhel
Syntax error: EOF in backquote substitution

I'm getting an error Syntax error: EOF in backquote substitution and I don't have the faintest idea why. Would anyone …

bash syntax-error sh init.d
Multiline syntax for piping a heredoc; is this portable?

I'm familiar with this syntax: cmd1 << EOF | cmd2 text EOF but just discovered that bash allows me to …

bash shell pipe sh heredoc