Skip to content

Instantly share code, notes, and snippets.

@tommypeps
Created September 14, 2018 14:43
Show Gist options
  • Save tommypeps/aa772e6c00c40a6c5cb2d7b4d9a43d6b to your computer and use it in GitHub Desktop.
Save tommypeps/aa772e6c00c40a6c5cb2d7b4d9a43d6b to your computer and use it in GitHub Desktop.
myfunctionTest() {
#read from pipeline
while read data; do
line=$data
echo line
done
}
myfunctionTest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment