Unix Shell - Re: merge line to previous line if ends with anything other than " (double quote)

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > September 2006 > Re: merge line to previous line if ends with anything other than " (double quote)





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: merge line to previous line if ends with anything other than " (double quote)
hikums@gmail.com

2006-09-21, 7:29 pm

figured out myself:
instead of looking for double quote and ending..I checked for
characters/numerals to end and merged them..

sed -e '/[A-Za-z0-9 ]$/{N;s/\n//g;}' inp_file >out_file

Thanks...
hikums@gmail.com wrote:
> I need to merge line to previous line if line ends with anything other
> than " (double quote).
>
> This is on a huge file. Thanks much..
>
> Kums


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com