Sunday, February 15, 2009

Linux : tr (translate) command

I made a good use of the translate command recently to get month-name
in upper case. I needed this in a shell script. Here's the command

date +%b | tr [a-z] [A-Z]

Output: FEB

Learn more about tr using the following command

man tr

4 comments:

Hapi said...

hello... hapi blogging... have a nice day! just visiting here....

File said...

Download Forum Poster V3 3.0 at FileAfro.com

http://www.fileafro.com/view_forum-poster-v3-30.html

Keyword said...

hello... you may submit this blog to my webBlog Directory, keyworddir.info.. have a nice day!

Keyword Directory

natasha said...
This post has been removed by a blog administrator.