ZTree.com  | ZEN  | About...  

 Index   Back

command line SED   [Help!]

By: Neil Clough     Melbourne, Victoria, Australia  
Date: May 21,2019 at 23:44
In Response to: command line SED (Ben Kent)

> If using the command line is possible, then download sed from
> http://gnuwin32.sourceforge.net/packages.html and use this commandline
>
> type input.txt | sed.exe -e ":x ; /\$$/ { N ; s/\$\n//g ; bx }" >
> output.txt
>
> That sed syntax came from here
> https://www.gnu.org/software/sed/manual/sed.html#Multiline-techniques
>
>
> Ben

Hi Ben,

Thanks for tip but I am at work so probably not allowed to download/install SED.

Not worth the hassle of asking.

Cheers,


Neil

147 views      
 

Messages in this Thread

 
94,477 Postings in 11,922 Threads, 348 registered users, 6 users online (0 registered, 6 guests)
Index | Admin contact |   Forum Time: Oct 17, 2019 - 11:51 pm EDT  |  Hits:28,770,123  (4,552 Today )
RSS Feed