Skip to content

Instantly share code, notes, and snippets.

@albertywu
Last active August 13, 2019 04:50
Show Gist options
  • Select an option

  • Save albertywu/92fcaf68566452fe50d51840759504f6 to your computer and use it in GitHub Desktop.

Select an option

Save albertywu/92fcaf68566452fe50d51840759504f6 to your computer and use it in GitHub Desktop.
unix toolbelt cheatsheet
# 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