The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 04-22-2009
pinnacle pinnacle is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 182
Awk with weird spaces (output from sybase server)

Quote:
Originally Posted by vgersh99 View Post
Code:
nawk -F, 'ORS=(FNR%2)?FS:RS' temp
When i pasted input file on website. i have some weird spaces but when i pasted i think website removed it. hence i am attaching it.


Requried Result
host1,server1,database1,5
host2,server2,database2,5
host3,server3,database3,5

Result i am getting is also attached

Appreciate help
Attached Files
File Type: txt inputfile.txt (375 Bytes, 21 views)
File Type: txt output_i_am_getting.txt (363 Bytes, 19 views)