Posts Tagged With: tr

Create Random Password

Tagged with: , , , , , , , ,

Use this command to create a random password


< /dev/urandom tr -dc A-Za-z0-9_ | head -c8

Also see…

No Comments »

Delete all \n chars in a file…

Tagged with: , , , , , , , ,

Delete all \n chars in a file…


tr -d "\n" 
No Comments »

Change Case

Tagged with: , , , , , ,

Convert from lower case to upper case


echo 'hello world' | tr '[:lower:]' '[:upper:]'
No Comments »