May 21, 2013, 7:35 PM
Or use a one-liner.
Re: [gevni] Problem in regular expression!!
perl -pe"$_='' unless /^[^,]java/" my_file.csv >new.csv
Corrected regexp. Should be:
perl -pe"$_='' unless /^[^,]*java/" my_file.csv >new.csv
This is the windows version (double quotes around the code. Two single quotes after the equal sign). Reverse single and double quotes on UNIX.
Note: The regexp matches java before the first comma.
(This post was edited by BillKSmith on May 22, 2013, 9:51 AM)