Quoting The Wanderer (2019-08-31 14:39:56)
> In practice, I'd either use this with 'sed -i [the above expression]
> filename' or (more likely) with 'cat filename | sed [the above
> expression] > newfilename'.

While wandering(!) off of the original topic, there is also this:

  cat filename | sed [the above expression] | spong filename

...for writing back (potentially in later iteration) longer pipelines 
back to same file.

sponge is part of Debian package moreutils.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

Attachment: signature.asc
Description: signature

Reply via email to