Articles tagged with #grep




grep without filenames

I needed to grep a directory, and sub directories, and not displaying the filenames in the output. This is when the man page came to the rescue. man grep | grep filename Output -H, --with-filename -h, --no-filename There we go, -h, --no-filename, is what I needed. Example with output to a …



Using xargs to parallel a process in the command line

Most of us have multiple CPUs in our personal machines. I would also hope that your servers do too. If you're running an intensive command line process, running them in parallel will speed it up by paralleling the process. Say you need to find a string in all of your …