Skip to content

Instantly share code, notes, and snippets.

@Rafe
Last active May 5, 2016 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rafe/e07cbfcbbe059e965946959a0d2bf55b to your computer and use it in GitHub Desktop.
Save Rafe/e07cbfcbbe059e965946959a0d2bf55b to your computer and use it in GitHub Desktop.
### find
find . -name "pattern"
-E regular expression
find / \! -user ccUser
### cut
cut
-d : delimiter
-f : field
-c : character position
"""
echo 'foo,bar,qaz,baz' | cut -d , -f 2-3
# bar qaz
"""
### tr
tr [from_string] [to_string]
-d : delete
-C,-c : set of characters in string
-s : squeeze, ignore space
### join
join [f1] [f2]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment