quuxfu: chop-chop
hacks and workarounds for certain computing problems
29.11.18
Regex to extract citations and other parenthetical expressions from text
Print out parenthetical expressions using sed:
sed 's/(/\n(/g' InputFile.txt | sed 's/)/)\n/g' | grep "^(";
Remove parenthetical expressions using perl:
perl -pe 's|(\(.*?\))||g' InputFile.txt;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment