Linux/Unix:Find and Replace: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
|||
| Line 13: | Line 13: | ||
==tr== | ==tr== | ||
;tr "[:upper:]" "[:lower:]" | ;tr <nowiki>"[:upper:]" "[:lower:]"</nowiki> | ||
;tr "[abc]" "[xyz]" | ;tr <nowiki>"[abc]" "[xyz]"</nowiki> | ||
:Transtlate, make all lowercase | :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 | :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 | ||
Revision as of 11:41, 18 March 2019
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