Created
December 13, 2013 10:07
-
-
Save bobbzorzen/7942267 to your computer and use it in GitHub Desktop.
Sed magix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<q1dataclean.txt sed -n 's/(.*\/\([A-Z][a-z]\{2\}[0-9]\{4\}AD\)[0-9A-Z].*>\([A-Z][a-z]\{2\}[0-9]\{4\}AD\))/({2012AD\21944AD\1})/p;s/(.*>\([A-Z][a-z]\{2\}[0-9]\{4\}AD\))/({2012AD\11944AD})/p;s/(.*\/\([A-Z][a-z]\{2\}[0-9]\{4\}AD\)[0-9A-Z].*)/({2012AD1944AD\1})/p;s/(\/.*)/({2012AD1944AD})/p' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment