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.

How to exclude a directory in find . command

I'm trying to run a find command for all JavaScript files, but how do I exclude a specific directory? Here …

linux shell find
How to call one shell script from another shell script?

I have two shell scripts, a.sh and b.sh. How can I call b.sh from within the shell …

bash shell
How can I declare and use Boolean variables in a shell script?

I tried to declare a Boolean variable in a shell script using the following syntax: variable=$false variable=$true Is …

bash shell scripting boolean sh
How do I prompt for Yes/No/Cancel input in a Linux shell script?

I want to pause input in a shell script, and prompt the user for choices. The standard Yes, No, or …

linux bash shell scripting
Comparing numbers in Bash

I'm starting to learn about writing scripts for the bash terminal, but I can't work out how to get the …

bash shell numeric
How to convert a string to lower case in Bash?

Is there a way in bash to convert a string into a lower case string? For example, if I have: …

string bash shell lowercase
How to read a file into a variable in shell?

I want to read a file and save it in variable, but I need to keep the variable and not …

shell unix sh
Replace one substring for another string in shell script

I have "I love Suzi and Marry" and I want to change "Suzi" to "Sara". #!/bin/bash firstString="I love …

bash shell
How do I pause my shell script for a second before continuing?

I have only found how to wait for user input. However, I only want to pause so that my while …

bash shell unix terminal
Shell command to tar directory excluding certain files/folders

Is there a simple shell command/script that supports excluding certain files/folders from being archived? I have a directory …

linux shell archive tar