matt-helps

insight on all things techie

Entries Tagged ‘xargs’

The wonder of xargs

If you’re ever sat at the linux commandline and had a repetitive task to complete on some files or directories then you’ll find “xargs” together with “find” a very useful combination. Find will return a list of files and directories, one per line which can be piped into xargs so that the same command can [...]

Recursive Find and Replace in Multiple Files

Just had to make a few changes to a website I own that means changing the same text in lots of files. Linux has lots of powerful tools to enable you to make this kind of change over lots of files over many directories very easily. The command is: find . -type f | xargs [...]

  

Follow mattparkins on Twitter