- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: about command:tr
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 12:28 AM
04-26-2002 12:28 AM
about command:tr
there is a file:one
in it:
ie
iei
ieie
i am a boy
when a use command:
tr "[=e=]" "[e*]"
then i look at file:two
it is the same as one,i dont know what happened
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 12:39 AM
04-26-2002 12:39 AM
Re: about command:tr
This may help:-
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x061672106351d5118fef0090279cd0f9,00.html
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 01:09 AM
04-26-2002 01:09 AM
Re: about command:tr
could you please tell us what you tried to accomplishe?
I can't figure out what result you tried to get.
Regards Stefan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 01:34 AM
04-26-2002 01:34 AM
Re: about command:tr
It translates (or in Perl-Lingo transliterates) each character of the first character set exactly with the one from the second character set.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 02:03 AM
04-26-2002 02:03 AM
Re: about command:tr
Your input does not have any accented variants of the charcter 'e' (e-umlaut, e-ascent, e-grave', etc).

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 08:14 AM
04-26-2002 08:14 AM
Re: about command:tr
Regards!
Shannon
> echo "Mjdsptpgt Sudlt"|tr "[b-t]" "[a-s]"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 08:43 AM
04-26-2002 08:43 AM
Re: about command:tr
tr gets its input through a pipe, try:
cat filename | tr "[=e=]" "[e*]" > test.out
I usually use "tr" to trim the spaces/tabs, It is a very handy command ...
To parse files with uneven spaces between fields
cat filename | tr -s " "
will trim the spaces to just one space between the fields...
cat filename | tr -s "\t" " "
will trim tabs and spaces between fields to just one space ...
Thanks,
Shabu