Created
January 16, 2014 22:10
-
-
Save granolocks/8464444 to your computer and use it in GitHub Desktop.
read DATA from end of bash script... :)
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
| f_data(){ | |
| tail -n $(expr $(wc -l $BASH_SOURCE | cut -d " " -f 1) - $(grep -ne '#\sDATA' $BASH_SOURCE|cut -d ":" -f 1)) $BASH_SOURCE | |
| } | |
| f_data | |
| # DATA | |
| # test data 1 | |
| # test data 2 | |
| # test data 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment