Upper To Lower To Upper Case Command Line

Nice trick to pipe command line data through to convert it’s alpha characters to upper or lower case.

From UPPER to lower…

tr [:upper:][:lower:]

From lower to UPPER…

tr [:lower:][:upper:]

For example…

ls /directory | tr [:lower:][:upper:] | sort

Short URL for this post: http://tmblr.co/ZufQ6y1BLL3U