I recently had cause to remove all files with a particular name and containing a particular string from some production servers. Below is the Gist I used to do it.
Tag Archives: grep
Speeding myself up on the commandline
I tend to find myself in the terminal.app on my Mac more often than not, SSHing into servers, checking whois, host, and any number of other things. My most frequent incantation is searching the command history so I don’t have to re-type a previous command, something like this: I’ll then copy and paste the command …