Search Results

Search: Posts Made By: cumeh1624
Forum: AIX 08-06-2014
1,587
Posted By Don Cragun
The script you used: awk '{sub("$","\r\n");...
The script you used:
awk '{sub("$","\r\n"); printf("%s",$0);}' inputfile > outputfile
would produce double spaced lines (with a carriage return at the end of the 1st line of every pair. To get...
4,735
Posted By SriniShoo
awk -F "Ç" 'NR == 1 {p = $0; next} NF > 1...
awk -F "Ç" 'NR == 1 {p = $0; next}
NF > 1 {gsub("^M", X, p); print p; p = $0; next}
{p = (p " " $0)}
END {gsub("^M", X, p); print p}' filename
Showing results 1 to 2 of 2

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