Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tr command queston??

 
johny doe
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's your question?


did you read the man page for 'tr'?
Do you understand regular expressions?
 
johny doe
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's some example.
 
johny doe
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i solved it thanks
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You mean meanwhile changing in both directions?
How did you solve it?
 
johny doe
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
echo "Hello WORLd " | tr '[:lower:] [:upper:]' '[:upper:] [:lower:]'
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didn't knew it is possible. Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic