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

email - PHP mail error ... failed to open stream : permission denied -

c# - ListView onScroll event -

c - Linux mmap() error -