Linux/Unix:Find and Replace

From wiki
Revision as of 09:46, 15 March 2019 by Hdridder (talk | contribs) (Created page with "==cat== ==head tail== ==fold== ==strings== ==more less== ==tr== ;tr "[:upper:]" "[:lower:]" ;tr "[abc]" "[xyz]" :Transtlate, make all lowercase :replace all a's with y,...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

cat

head tail

fold

strings

more less

tr

tr "[
upper:]" "[:lower:]"
tr "[abc]" "[xyz]"
Transtlate, make all lowercase
replace all a's with y, all b's with y and all c's with z, works from stdin to stdout. All sort of translations can be done
tr -d <char>
Delete <char> from standard input

grep

sed

awk

read