matt-helps

insight on all things techie

Entries Tagged ‘bash scripting’

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 [...]

Linux: Bash Scripting: Search Bash History

Often when at the linux terminal I need a long command that I recently tapped out so naturally I use the up/down arrow keys to look through my recently typed in commands.  But if I’m searching for a command I used days ago then I’ll be pressing the up/down arrow keys a lot just to [...]

  

Follow mattparkins on Twitter