The term 'shell' refers to a general class of text-based interactive command interpreters most often associated with the Unix & Linux operating systems. For questions about shell scripting, please use a more specific tag such as 'bash', 'powershell' or 'ksh'. Without a specific tag, a portable (POSIX-compliant) solution should be assumed, though using 'posix' in addition or 'sh' instead is preferable.
I just can't figure out how do I make sure an argument passed to my script is a number or not. All I wan
In shell scripts, when do we use {} when expanding variables? For example, I have seen the following: var=10
I'm looking for the string foo= in text files in a directory tree. It's on a common Linux machine, I
I am using Git from the command line and am trying to add a line break to the commit message (using git commit
How would I count the total number of lines present in all the files in a git repository? git ls-files gives
I have two shell scripts, a.sh and b.sh. How can I call b.sh from within the shell script a.sh?
I have a whole bunch of tests on variables in a bash (3.00) shell script where if the variable is not set, the
How would I get just the current working directory name in a bash script, or even better, just a terminal comm
I am looking for a command that will accept (as input) multiple lines of text, each line containing a single i
I have a process that is already running for a long time and don't want to end it. How do I put it under
I have "I love Suzi and Marry" and I want to change "Suzi" to "Sara". #!/bin/bash firstString="I love Suzi an
What is export for? What is the difference between: export name=value and name=value
How can I reload .bash_profile from the command line? I can get the shell to recognize changes to .bas
How do I call shell commands from inside of a Ruby program? How do I then get output from these commands back