Posts Tagged With: match

Command to Print Until Regular Expression

Tagged with: , , , , ,

Print a file until a regular expression is matched.


cat file.txt | perl -pe "exit if(/Thats all/)"
No Comments »