Skip to content

Instantly share code, notes, and snippets.

@raphink
Created September 10, 2013 09:07
Show Gist options
  • Select an option

  • Save raphink/6506866 to your computer and use it in GitHub Desktop.

Select an option

Save raphink/6506866 to your computer and use it in GitHub Desktop.
#!/bin/sh
LOGS=$1
grep scope $LOGS | awk '{print $1" "$14}' | while read f l; do
echo $f: $(sed "${l}q;d" $f)
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment