Advertisement
JPeterson

regex

Oct 23rd, 2012
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.25 KB | None | 0 0
  1. # return quoted string, ignore changed file
  2. printf "=== modified file 'src/file.py' (properties changed: -x to +x)\n--- test.py    2012-10-23 10:46:23 +0000\n=== modified file 'src/file 2.py' (properties changed: -x to +x)"|perl -nE"say /'([^']+)'[^\n]+\n-/s"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement