These are a collection of command line tools that I use (on Windows) in place of the more traditional tools you would find in a *NIX system.
What | OG | Better | Lang | Multi | How to install |
---|---|---|---|---|---|
Find text in files | grep | ripgrep | Rust | ✔️ | cargo install ripgrep |
List files in a directory | ls | exa | Rust | ❌1 | cargo install exa |
Read file content | cat | bat | Rust | ✔️ | Package manager (+ choco) |
Find files by name | find | fzf | Go | ✔️ | Package manager (+ choco) |
Count lines of code | cloc | loc | Rust | ✔️ | cargo install loc |
Navigate/manipulate JSON | jq? | yq | Go | ✔️ | go install github.com/mikefarah/yq/v4@latest |
Navigate/manipulate HTML | N/A | pup | Go | ✔️ | go install github.com/ericchiang/pup@latest |
exa
doesn’t compile on Windows ↩︎