aspose file tools*
The moose likes Linux / UNIX and the fly likes tr command queston?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "tr command queston??" Watch "tr command queston??" New topic
Author

tr command queston??

johny doe
Ranch Hand

Joined: Dec 07, 2007
Posts: 78
Use tr command to substitute all lower-case letters for upper-case ones and vice versa, i.e. upper-case to lower-case. Use manual or any other source to learn the tr command
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4655
    
    5

What's your question?


did you read the man page for 'tr'?
Do you understand regular expressions?
johny doe
Ranch Hand

Joined: Dec 07, 2007
Posts: 78
these is my assigment

=========
Use tr command to substitute all lower-case letters for upper-case ones and vice versa, i.e. upper-case to lower-case. Use manual or any other source to learn the tr command
===========

i read the tr man and the only thing
that i think could help me is
[:lower:]
[:upper:]

how do i make this command??
Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

Here's some example.


SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
johny doe
Ranch Hand

Joined: Dec 07, 2007
Posts: 78
its only changes all the letters to upper case

how do i change it so it will change all the lower case letters
to upper case

and all the upper case to lower case
???
johny doe
Ranch Hand

Joined: Dec 07, 2007
Posts: 78
i solved it thanks
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

You mean meanwhile changing in both directions?
How did you solve it?


http://home.arcor.de/hirnstrom/bewerbung
johny doe
Ranch Hand

Joined: Dec 07, 2007
Posts: 78
echo "Hello WORLd " | tr '[:lower:] [:upper:]' '[:upper:] [:lower:]'
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

I didn't knew it is possible. Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tr command queston??