Skip to content

Instantly share code, notes, and snippets.

@scifisamurai
Created August 28, 2011 14:14
Show Gist options
  • Save scifisamurai/1176711 to your computer and use it in GitHub Desktop.
Save scifisamurai/1176711 to your computer and use it in GitHub Desktop.
Display files
#Prints the content of every file in your current directory
#Useful if you just wrote a few small files and want to see everything at a glance
#For each file:
#1. Display it's name preceded & succeeded by dashed lines
#2. Display the files contents
for i in * ; do echo "----"; printf "$i\n----\n" ; cat $i; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment