The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
RSS feeds to Email Mukka Shell Programming and Scripting 0 03-18-2008 07:27 PM
RSS Feeds of Threads craigp84 Post Here to Contact Site Administrators and Moderators 11 12-13-2007 09:33 AM
Spurious line feeds ajcannon Shell Programming and Scripting 2 10-29-2007 04:24 AM
Remove line feeds vsk Shell Programming and Scripting 8 06-16-2005 09:28 AM
carriage return/line feeds pitstop Shell Programming and Scripting 4 11-24-2003 12:47 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #8  
Old 09-01-2005
Registered User
 

Join Date: Aug 2005
Posts: 8
vgersh

vgersh has miss understood my problem

Input_csv_file
XXX, "456 New albany
newyork, Unitedstates
45322-33", YYY
ZZZ, "654 rifle park
toronto, canada
43L-w3b", RRR

output_csv file should like this
XXX, "456 New albany newyork, Unitedstates 45322-33", YYY
ZZZ, "654 rifle park toronto, canada 43L-w3b", RRR

Note: is there anyway i can remove the linefeed between " "
Reply With Quote
Forum Sponsor
  #9  
Old 09-01-2005
vgersh99's Avatar
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 3,029
Quote:
Originally Posted by gowrish
vgersh has miss understood my problem

Input_csv_file
XXX, "456 New albany
newyork, Unitedstates
45322-33", YYY
ZZZ, "654 rifle park
toronto, canada
43L-w3b", RRR

output_csv file should like this
XXX, "456 New albany newyork, Unitedstates 45322-33", YYY
ZZZ, "654 rifle park toronto, canada 43L-w3b", RRR

Note: is there anyway i can remove the linefeed between " "

Just use futurelet's suggestion. Save the posted code in a file - call it: futurelet.awk

Call sequence:

nawk -f futurelet.awk Input_csv_file

After that, read futurelet's comments. After that do 'man nawk' and read, read, read....

Last edited by vgersh99; 09-01-2005 at 12:03 PM.
Reply With Quote
  #10  
Old 09-01-2005
Registered User
 

Join Date: Aug 2005
Posts: 8
vgersh

hey vgersh !


Thanks alot man ! Ur suggestion ! worked out for me !

I really appreciate ur help ...
Reply With Quote
  #11  
Old 09-01-2005
vgersh99's Avatar
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 3,029
Quote:
Originally Posted by gowrish
hey vgersh !


Thanks alot man ! Ur suggestion ! worked out for me !

I really appreciate ur help ...
all kudos go to futurelet.
don't forget the 'reading' part.....
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:24 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0