Viewing 1 to 2 of 2 items
Tag Archives: Alias

ZSH shell search alias

This wraps it all together. We define a ZSH function search which will give us a shortcut for searching multiple files in a folder tree: # Search ASCII-string from multiple files in the currect working directory # E.g. # search “foobar” “*.html” # search “foobar” “*.html” myfolder # By default we excluse dotted files and  Full Article…

0

Remove grep from grep output of ps command

You might always see the “grep” as the list of processes when you grep for a particluar process. $ ps -ef | grep xscreensaver jsaikia 4050 1 0 May14 ? 00:00:00 xscreensaver -nosplash jsaikia 14282 14245 0 16:54 pts/2 00:00:00 grep xscreensaver If you want not to print it the output, you can do “grep  Full Article…

0