Skip to content

Instantly share code, notes, and snippets.

@kristianfreeman
Last active December 15, 2015 11:59
Show Gist options
  • Save kristianfreeman/5257175 to your computer and use it in GitHub Desktop.
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
# 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