- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Upper Case - Lower Case Question -
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
08-14-2005 11:43 PM
08-14-2005 11:43 PM
hostname1.domain.com
HOSTNAME2.domain.com
HOSTNAME3.domain.com
hostname4.domain.com
HOSTNAME5.domain.com
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2005 11:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2005 11:48 PM
08-14-2005 11:48 PM
Re: Upper Case - Lower Case Question -
tr "[:lower:]" "[:upper:]"
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2005 11:49 PM
08-14-2005 11:49 PM
Re: Upper Case - Lower Case Question -
tr "[:upper:]" "[:lower:]"
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2005 12:51 AM
08-15-2005 12:51 AM
Re: Upper Case - Lower Case Question -
cat file|tr "[:upper:]" "[:lower:]" > file1
and it works fine.
I love this forum. Thanks to all of you, I always get a quick, accurate response to my posts!!!!!!!!!!!!!!!!!!!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2005 01:27 AM
08-15-2005 01:27 AM
Re: Upper Case - Lower Case Question -
As an additon to other replies another fantastic links which may help you;
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=694878
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=840763
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=87241
Good luck,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2005 01:46 AM
08-16-2005 01:46 AM
Re: Upper Case - Lower Case Question -
# awk '{print tolower($0)}'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2005 02:01 AM
08-16-2005 02:01 AM
Re: Upper Case - Lower Case Question -
# awk '{print tolower($0)}' input_file > output_file
Also can be done from within ex...no output file needed as ex will modify the exisiting one.
# ex -s input_file <
> x
> EOF
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2005 02:29 AM
09-12-2005 02:29 AM
Re: Upper Case - Lower Case Question -
Here's the script.
#!/usr/bin/sh
VAR=$*
LOWER=`echo $VAR | tr "[A-Z]" "[a-z]" `
echo $LOWER
exit 0
Example:
mystringlower=`lowercase.sh $1`
Here's a script for upper case:
#!/usr/bin/sh
VAR=$*
UPPER=`echo $VAR | tr "[a-z]" "[A-Z]" `
echo $UPPER
exit 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2005 02:31 AM
09-12-2005 02:31 AM
Re: Upper Case - Lower Case Question -
jack...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2005 02:46 AM
09-12-2005 02:46 AM
Re: Upper Case - Lower Case Question -
assuming your file name is file1.txt
# tr "[:upper:]" "[:lower"] < file1.txt > file2.txt
check :
# cat file2.txt
hostname1.domain.com
hostname2.domain.com
hostname3.domain.com
hostname4.domain.com
hostname5.domain.com
Cheers,
Raj.