Skip to content

Instantly share code, notes, and snippets.

@navjeetc
Created June 5, 2009 14:08
Show Gist options
  • Save navjeetc/124298 to your computer and use it in GitHub Desktop.
Save navjeetc/124298 to your computer and use it in GitHub Desktop.
# grep some lines and remove some text from each grepped line and save the output to a file
grep getConn PCCASHPOS*.out | grep -v "JDBC.getConn" | sed 's/^.*getConnection\|//' > /tmp/conn.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment