Ripgrep
rg is a modern alternative to unix grep. Github.
Fd
fd is a modern alternative to unix find. Github.
Examples:
fd nameA simple find of files in the cwd with name.fd -e txtFinds all files with extension txt.fd -x cmdRun a command with all matches, likefind ... | xargs ....fd -X cmdRun a command for each match, likefind ... | xargs -n 1 ....fd -e py -X rg <regex>Search python files for a regex.
Sd
sd is a modern alternative to unix sed. Github.
Simple interface: sd before after
Choose
choose is a modern alternative to unix cut or simple awk. Github. Install brew install choose-rust.
Examples:
choose 3Selects column three.choose 1:4Column ranges, inclusive.choose :3Selects through column three.choose -4:-1Columns counted from the last.choose -f ,Change field separator, default whitespace.
Exa
exa is a modern alternative to unix ls. Website.
Examples:
exa --lLong formatexa --treeA recursive tree view of all decendents.exa --git-ignoreExcludes files ignored by git.exa --gitIncludes git statuses.exa --extendedIncludes xattrs.
Zip
- Zip a folder, including folder name:
zip -r <Archive.zip> folder/ - List zip contents:
unzip -l <Archive.zip>- Or,
zip -sf <Archive.zip>
- Or,
- Clean unwanted files:
zip -d <Archive.zip> __MACOSX/\*orzip -d <Archive.zip> \*/.DS_Store