Several bash scripts to practice linux scripting
Example: bash average.sh testFiles/ints1.txt
Desc: Calculates the mean for a file of integers
Input: file of ints newline separated
Example: bash find.sh
or bash find.sh testFiles
Desc: Based off Linux find command
Input:
- None to see all files and directories in current directory or
- Name of file/directory to see if it exists in current directory
Example: bash median.sh testFiles/ints1.txt
Desc: Calculates the median for a file of integers
Input: file of ints newline separated
Example: bash occur.sh Chapter testFiles/mobyDick.txt
Desc: Calculates the number of occurences of a word in a text
Input:
- The word you want to search for and
- the file you want to search for the word in