Created
April 1, 2016 04:55
-
-
Save quickgrid/94c011f91650634bcaa656e3a1550cd8 to your computer and use it in GitHub Desktop.
Example of bash function argument function passing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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