Search Results

Search: Posts Made By: prasson_ibm
9,499
Posted By Scrutinizer
Try (gawk, mawk, bwk): awk 1 RS='\n\t' infile ...
Try (gawk, mawk, bwk):
awk 1 RS='\n\t' infile
POSIX awk:
awk 'END{print RS} {$0=(/^\t/?x:RS) $0}1' ORS= infile


--
If there is always a sequence of two lines:
awk '{ORS=(!/^\t/)?x:RS}1'...
Showing results 1 to 1 of 1

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