Created
August 28, 2011 14:14
-
-
Save scifisamurai/1176711 to your computer and use it in GitHub Desktop.
Display files
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
#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