Top "Sh" questions

sh is the standard Unix shell since Version 7 Unix.

Compare a string using sh shell

I am using SH shell and I am trying to compare a string with a variable's value but the if …

shell unix sh
What's a .sh file?

So I am not experienced in dealing with a plethora of file types, and I haven't been able to find …

linux sh download-manager
What does set -e mean in a bash script?

I'm studying the content of this preinst file that the script executes before that package is unpacked from its Debian …

linux bash shell sh
How can I split a shell command over multiple lines when using an IF statement?

How can I split a command over multiple lines in the shell, when the command is part of an if …

syntax sh
How to get a password from a shell script without echoing

I have a script that automates a process that needs access to a password protected system. The system is accessed …

bash shell scripting sh
How to execute mongo commands through shell scripts?

I want to execute mongo commands in shell script, e.g. in a script test.sh: #!/bin/sh mongo myDbName …

mongodb bash shell sh
Command not found error in Bash variable assignment

I have this script called test.sh: #!/bin/bash STR = "Hello World" echo $STR when I run sh test.sh …

bash shell syntax sh variable-assignment
Check if a file exists with wildcard in shell script

I'm trying to check if a file exists, but with a wildcard. Here is my example: if [ -f "xorg-x11-fonts*" ]; …

shell sh wildcard
How to run a cron job inside a docker container?

I am trying to run a cronjob inside a docker container that invokes a shell script. Yesterday I have been …

docker cron containers sh
Shell Script Syntax Error: Unexpected End of File

In the following script I get an error: syntax error: unexpected end of file What is this error how can …

shell sh