Skip to content

Instantly share code, notes, and snippets.

@jiminald
Created August 29, 2019 10:34
Show Gist options
  • Select an option

  • Save jiminald/e2a9af63fd4f3a99bfb8976f0dd3c6c6 to your computer and use it in GitHub Desktop.

Select an option

Save jiminald/e2a9af63fd4f3a99bfb8976f0dd3c6c6 to your computer and use it in GitHub Desktop.
# Replace 23 with the line number your looking for
for file in $(grep -r -I -l .); do
awk 'FNR==23 {print FILENAME, $0}' "$file" >> ./output.txt;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment