Skip to content

Instantly share code, notes, and snippets.

@kantord
Created October 26, 2016 14:07
Show Gist options
  • Save kantord/4c4e7b7faa970468312f4ea9ea44f008 to your computer and use it in GitHub Desktop.
Save kantord/4c4e7b7faa970468312f4ea9ea44f008 to your computer and use it in GitHub Desktop.
Get every line from every file annotated with their filename and last modification
find . -type f -exec bash -c 'paste -d "|" <(yes $0) <(yes $(stat -c %y "$0")) "$0" | head -n `cat "$0" | wc -l`' '{}' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment