Txt

Byte sized tech know-how.

  • Home
  • About

Tag Archives: tr

02 Jul

Create Random Password

Use this command to create a random password


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

Also see…

admin Posted in Command Line, Linux command, head, Linux, password, random, shell, shellfu, tr, urandom Leave a comment
01 Sep

Delete all \n chars in a file…

Delete all \n chars in a file…


tr -d "\n" 
admin Posted in Command Line, Linux command, delete, line, Linux, new, newline, slashn, text, tr Leave a comment
04 Mar

Change Case

Convert from lower case to upper case


echo 'hello world' | tr '[:lower:]' '[:upper:]'
admin Posted in Command Line, Linux case, command, convert, Linux, text, tr, transilate Leave a comment

Post navigation

Categories

  • Code
  • Command Line
  • Configuration
  • CSS
  • HTML
  • internet
  • JavaScript
  • Linux
  • Mobile
  • Perl
  • PHP
  • Python
  • Ruby
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Fruitful theme by fruitfulcode Powered by: WordPress
↑