Last active
August 13, 2019 04:50
-
-
Save albertywu/92fcaf68566452fe50d51840759504f6 to your computer and use it in GitHub Desktop.
unix toolbelt cheatsheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # filter rows in a file by line number / position | |
| awk | |
| # filter rows in a file by regex | |
| grep | |
| # filter cols in a file | |
| awk | |
| # transform rows by regex | |
| sed | |
| # transform rows by mapping sets of characters | |
| tr | |
| # duplicating / transforming cols in a file | |
| awk | |
| # pipe stdin to command args | |
| xargs | |
| # transform JSON | |
| jq | |
| # make network requests | |
| curl | |
| # search for filenames by regex | |
| ag | |
| # search for code by regex | |
| ag |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment