Skip to content

Instantly share code, notes, and snippets.

@quickgrid
Created April 1, 2016 04:55
Show Gist options
  • Save quickgrid/94c011f91650634bcaa656e3a1550cd8 to your computer and use it in GitHub Desktop.
Save quickgrid/94c011f91650634bcaa656e3a1550cd8 to your computer and use it in GitHub Desktop.
Example of bash function argument function passing.
#!/bin/bash
readFile(){
while read line
do
echo $line
done < "$1"
}
readFile log.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment