Search Results

Search: Posts Made By: Andre_Merzky
5,602
Posted By Andre_Merzky
Hmm, interesting, seems to work ok for me: ...
Hmm, interesting, seems to work ok for me:



merzky@thinkie:~/test/unix.com$ cat multiline.txt
000000001 12335 Infinte solutiong PO box copyright
000000002 12335 Dhahran solutiong
PO box...
5,602
Posted By Andre_Merzky
cat multiline.txt | perl -e ' while ( <> ) { ...
cat multiline.txt | perl -e ' while ( <> ) {
chomp;
print "\n" if m/^\d{9}\s.*/ ;
print "$_ ";
}
print "\n";'
The removal of the first empty line is left as an excercise to the reader...
Showing results 1 to 2 of 2

 

Featured Tech Videos

All times are GMT -4. The time now is 04:20 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy