Terminal Exercises
Help 19 / 25
Shell Scripts

Variables in shell scripts

Go to the folder exercise-data/alkanes/:

cd $TUTORIAL/exercise-data/alkanes/

In this directory, imagine you have a shell script called script.sh containing the following commands:

head -n $2 $1
tail -n $3 $1

While you are in the alkanes directory, you type the following command:

bash script.sh '*.pdb' 1 1
Loading...