Introduction to Linux Exercise:
1) Write 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 write and compile some LATEX files. If you are not doing the LATEX module, download the example file from the resources directory for this module and see the instructions in that directory.
2) Write 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 write some for and if constructs. Execute this function in your :profile file.
3) Write 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) Write 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.