Tag: tr

Create Random Password

Use this command to create a random password < /dev/urandom tr -dc A-Za-z0-9_ | head -c8 Also see…

Delete all \n chars in a file…

Delete all \n chars in a file… tr -d “\n”

Change Case

Convert from lower case to upper case echo ‘hello world’ | tr ‘[:lower:]’ ‘[:upper:]’