From 3eb7db205be9680ddd416a20810b0b905e7f7d96 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Tue, 23 Jul 2019 16:24:05 +0200 Subject: [PATCH] Add first page --- better-cli.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 better-cli.md diff --git a/better-cli.md b/better-cli.md new file mode 100644 index 0000000..2b1ba14 --- /dev/null +++ b/better-cli.md @@ -0,0 +1,27 @@ +# Better CLI tools + +- **What**: What is the tool for +- **OG**: Original tool +- **Better**: Better tool to use +- **Lang**: Language the tool is written in +- **Multi**: Works on all major platforms (Windows, Linux, Mac, *BSD) + +| 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 | *N/A* | [jq] | C | ✔️ | Package manager (+ choco) | +| Navigate/manipulate HTML | *N/A* | [pup] | Go | ✔️ | `go get github.com/ericchiang/pup` | + +[ripgrep]: https://github.com/BurntSushi/ripgrep +[loc]: https://github.com/cgag/loc +[bat]: https://github.com/sharkdp/bat +[jq]: https://stedolan.github.io/jq/ +[pup]: github.com/ericchiang/pup +[fzf]: https://github.com/junegunn/fzf +[exa]: https://the.exa.website/ + +1. `exa` doesn't compile on Windows