Last active
December 15, 2015 11:59
-
-
Save kristianfreeman/5257175 to your computer and use it in GitHub Desktop.
Bash script to show the first couple lines of every file based on extension
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
# Usage: `show rb`, `show php`, `show txt` | |
function show { | |
head -3 *.$1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment