Search Results

Search: Posts Made By: shah09
2,131
Posted By radoulov
Use gawk, /usr/xpg4/bin/awk or nawk on Solaris: ...
Use gawk, /usr/xpg4/bin/awk or nawk on Solaris:



awk 'END {
for (j = 0; ++j <= O;)
printf "%s", o[j] (j < O ? OFS : RS)
while (++i <= m)
for (j = 0; ++j <= O;)
printf...
1,859
Posted By aigles
The record sperator RS is missing for the last...
The record sperator RS is missing for the last record.awk '{printf "%s" ($0 ~ /^[A-Za-z]/?RS $0:FS $0)} END { print RS }' infileUsing printf without format may give an error if printed data contains...
1,859
Posted By malcomex999
This should work as your sample file... awk...
This should work as your sample file...
awk '{printf ($0 ~ /^[A-Za-z]/?RS $0:FS $0)}' infile
Showing results 1 to 3 of 3

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