ZTree.com  | ZEN  | About...  

 Index   Back

command line SED   [Help!]

By: Neil Clough     Melbourne, Victoria, Australia  
Date: May 22,2019 at 03: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

1,007 views      
Thread locked
 

Messages in this Thread

 
96,637 Postings in 12,231 Threads, 350 registered users, 65 users online (0 registered, 65 guests)
Index | Admin contact |   Forum Time: Mar 28, 2024 - 11:39 am UTC  |  Hits:62,365,173  (17,570 Today )
RSS Feed