Simpler CLI tools

grep, find, sed, awk are powerful and fast, but their APIs are hard to memorize and sometimes very awkward; so that’s why I use some tools that are slower but are way more user friendly.

Haters gonna hate, and there is definitely a hidden cost on using theses tools (you won’t learn the standard ones); but there is also a huge benefit on the ease of use.

Here are the tools that I use often:

jump between frequently used folders with ease (must have!).
searches for files by name inside a directory based on pattern.
search for files that contains a given string.
similar to spot but with more features. (worse output on minified files tho)
search-and-replace on files. It’s similar to sed but uses JS RegExp
syntax, modifies files in place & recursive search on directories with -r.
the preview -p flag is really helpful.
basic static server, simpler than starting apache or python SimpleHTTPServer
(and can handle more requests than SimpleHTTPServer).
simplified help for common command line tools (man pages are usually verbose and hard to understand).
preview Github README/markdown files locally.
counts SLOC (source lines of code) inside a folder.
watch files and run a command when they change
colored file diff, better than diff(1) when comparing white-spaces,
indentation and line breaks (output is easier to understand).

Not saying these are the best ones for the job, just that they do help me to do what I need. I’m by no means an UNIX/shell expert.

I hope these tools also help you do your job faster.


Tags: , ,


Matías Lescano

Certainly did. Thank you!

After talking about greadme with friends this other tool came out with better options, including a watch option: https://www.npmjs.com/package/github-markdown-preview

Wesley de Souza

Just stumbled upon this gem, perfect for this list as well: