The UNIX and Linux Forums
Forum Home
Linux and Unix Man Pages
Search Forums
Search Community Posts
Today's Posts
Quick Links
Man Pages
RedHat Commands
OpenSolaris Commands
Linux Commands
SunOS Commands
FreeBSD Commands
All UNIX Man Pages
All Linux Man Pages
Full Man Repository
Login or Register to Ask a Question and Join Our Community
Search Forums
Show Threads .
Show Posts
Tag Search
Advanced Search
Quick Links
Contact Us
Forum Rules
Today's Posts
FAQ
Pictures & Albums
All Albums
Miscellaneous
What is My IP
Whois
Mark Forums Read
Search Results
Showing results 1 to 2 of 2
Search took
0.01
seconds.
Search:
Posts Made By:
cumeh1624
Forum:
AIX
08-06-2014
1
Adding CR to ascii data file generated on AIX platform and will be transmitted to Windows OS
1,588
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...
Forum:
Shell Programming and Scripting
04-21-2014
17
Append next line to previous lines when NF is less than 0
4,744
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
Member Badges and Information Modal
×