Cardboard Box

Cardboard Box

A place to store useful snippets of code, links and other such geek stuffs.

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.  Most people dont even realize the 'tr' command exists on most linux/shell releases.

From UPPER to lower: tr [:upper:] [:lower:]
From lower to UPPER: tr [:lower:] [:upper:]

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

Labels: , ,

posted by Don @ 11:31 AM, , link to this post

About This Blog

This blog is a place where I hope to put the snippets and trimmings of my geek'dom ... code samples that have served me well, tech links and other such things that'll I find useful. In short, any time I have to Google something, I tend to post it here for others to find as well.

Also, having owned 'digital-penguin.com' for many years and having worked with many a fellow geek, this site also serves as a place where I can always be found.


Labels

Previous Posts

Archives

Links

Powered by Blogger