Skip to content

Instantly share code, notes, and snippets.

@knugie
Last active May 25, 2022 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save knugie/5366830 to your computer and use it in GitHub Desktop.
Save knugie/5366830 to your computer and use it in GitHub Desktop.
print all files
# Print each file in the current directory, including subdirectories with
# the full relative filename and its content, separated by 2 empty lines
# e.g.:
# ##### ./jasmine-coverage-javascript-coffeescript/Rakefile #####
# env = ENV['RACK_ENV'] || ENV['RAILS_ENV'] || 'development'
# if env =~ /^(development|test)$/
# import 'lib/tasks/jasmine_coverage.rake'
# end
#
#
# ##### ./jasmine-coverage-javascript-coffeescript/README.md #####
# /!\\ This project is still in its Beta-phase. It works for a whole bunch of happy users, but may not
# work for you. Please, kindly report any bugs.
find . -type f | grep -v '/\.' | while read filename; do echo "##### ${filename} #####"; cat $filename ; echo -e "\n\n"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment