Search Results

Search: Posts Made By: Andre_Merzky
8,875
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...
8,875
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

 
All times are GMT -4. The time now is 05:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy