Skip to content

AndrewS-GH/bash-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bash-scripts

Several bash scripts to practice linux scripting

average.sh

Example: bash average.sh testFiles/ints1.txt
Desc: Calculates the mean for a file of integers
Input: file of ints newline separated

find.sh

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

median.sh

Example: bash median.sh testFiles/ints1.txt
Desc: Calculates the median for a file of integers
Input: file of ints newline separated

occur.sh

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

About

Some bash scripts for practice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages