Top "Shell" questions

The term 'shell' refers to a general class of text-based interactive command interpreters most often associated with the Unix & Linux operating systems.

What's the best way to send a signal to all members of a process group?

I want to kill a whole process tree. What is the best way to do this using any common scripting …

linux shell process signals
Command to get time in milliseconds

Is there a shell command in Linux to get the time in milliseconds?

linux bash shell time
eval command in Bash and its typical uses

After reading the bash man pages and with respect to this post. I am still having trouble understanding what exactly …

linux bash shell scripting eval
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
How to split one string into multiple variables in bash shell?

I've been looking for a solution and found similar questions, only they were attempting to split sentences with spaces between …

bash shell variables
Compare two files line by line and generate the difference in another file

I want to compare file1 with file2 and generate a file3 which contains the lines in file1 which are not …

shell unix
Which characters need to be escaped when using Bash?

Is there any comprehensive list of characters that need to be escaped in Bash? Can it be checked just with …

bash shell unix escaping special-characters
How to call a shell script from python code?

How to call a shell script from python code?

python shell
Check if a string matches a regex in Bash script

One of the arguments that my script receives is a date in the following format: yyyymmdd. I want to check …

regex bash shell scripting
Count number of lines in a git repository

How would I count the total number of lines present in all the files in a git repository? git ls-files …

bash git shell line-count