Skip to content

Instantly share code, notes, and snippets.

@JurrianFahner
Created April 27, 2018 15:32
Show Gist options
  • Save JurrianFahner/64912d29024a524feac1fdf85625e6b9 to your computer and use it in GitHub Desktop.
Save JurrianFahner/64912d29024a524feac1fdf85625e6b9 to your computer and use it in GitHub Desktop.
Simple script to list all go files with filenames
#!/usr/bin/env bash
find . -type f | grep "\.go" > files.txt
file='./files.txt'
lines=`cat $file`
for line in $lines; do
echo "Bestand: $line"
cat $line
echo
echo
done
rm files.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment