Created
April 27, 2018 15:32
-
-
Save JurrianFahner/64912d29024a524feac1fdf85625e6b9 to your computer and use it in GitHub Desktop.
Simple script to list all go files with filenames
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
#!/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