unix - Remove line of text from multiple files in Linux -


Is there an easy way to extract the text of a single line from a folder full of text documents on the command line?

  sed -i.bak '/ line of text / d' *  

If your Eddie's version is allowed in the -i.bak flag (edited in place). If you do not just put it in a bash loop: $ / ($ lt *) for the file

  '/' line's text / d '$ file & gt; $ File.new_file.txt done  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -