HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- command help
Operating System - HP-UX
1834226
Members
2363
Online
110066
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
10-06-2003 08:59 PM
10-06-2003 08:59 PM
Hi All,
I need some help.
If I have a cluster with three servers, hostname abc1,abc2,abc3.
I need to write a script to compare files in all three servers, where i am gonna use the remsh command.
Say for example if the $var = abc1, then look for the abc2 and abc3 and do the remsh. How do i cut only the characters in the hostname like abc1, i only wanna pick up the 'abc' and then continue the process from there, so i need not hardcode the hostname, as I have many clusters in hand.
Thanks
Regards
I need some help.
If I have a cluster with three servers, hostname abc1,abc2,abc3.
I need to write a script to compare files in all three servers, where i am gonna use the remsh command.
Say for example if the $var = abc1, then look for the abc2 and abc3 and do the remsh. How do i cut only the characters in the hostname like abc1, i only wanna pick up the 'abc' and then continue the process from there, so i need not hardcode the hostname, as I have many clusters in hand.
Thanks
Regards
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2003 09:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2003 09:18 PM
10-06-2003 09:18 PM
Re: command help
Hi,
Another solution:
a=$(echo abc1 |tr -d [:digit:])
echo $a
Another solution:
a=$(echo abc1 |tr -d [:digit:])
echo $a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 01:21 AM
10-07-2003 01:21 AM
Re: command help
Hi,
Here's another way:
echo $var | sed 's/[0-9]//g'
Hope this helps. Regards.
Steven Sim Kok Leong
Here's another way:
echo $var | sed 's/[0-9]//g'
Hope this helps. Regards.
Steven Sim Kok Leong
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP