Search Results

Search: Posts Made By: ivar.friheim
1,776
Posted By Scrutinizer
Alternatively, try this: awk '$1=$1' FS='\n'...
Alternatively, try this:
awk '$1=$1' FS='\n' OFS=';' RS= infile
1,776
Posted By radoulov
awk 'END { if (r) print r } ...
awk 'END {
if (r) print r
}
/^\([0-9]+\)/ {
print r; r = x
}
{
r = r ? r OFS $0 : $0
}' OFS=\; infile

On Solaris use nawk or /usr/xpg4/bin/awk.
Showing results 1 to 2 of 2

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