Introduction to Linux Exercise:
1) prepare a bash shell script which searches through your folders for files with the extension *.tex, and then interactively deletes the corresponding *.aux, *.dvi and *.log files (i.e. asks the user whether or not to delete the files). You will need to use the find command, and first prepare and compile some LATEX files. If you are not doing the LATEX module, download the ex file from the resources directory for this module and see the instructions in that directory.
2) prepare a bash shell function which removes duplicate copies of directories from your PATH environment variable. You will need to use the the awk command, and prepare some for and if constructs. Execute this function in your :profile file.
3) prepare a makefile which compiles the program cavity. The Fortran files required to do this are contained in the archive parallel.tgz, which is on the MUSO website. To unpack this file use:
$ tar xvfz parallel.tgz
then read the le README. Your makele should also include targets which commit and checkout the text files from your svn repository, archive the text les into a :tgz file, and cleans the directory (remove all the executable, :o and :mod les).
4) prepare a bash script which runs an executable file in the background, directs the output and error to log files, keeps it running when you logout and mails you when the job is finished. This is useful for long jobs. You will need to use the mail, nohup and nice commands. The input for the script should be the name of the executable file.