HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- The cut command
Operating System - HP-UX
1833958
Members
2039
Online
110063
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
05-09-2006 10:55 PM
05-09-2006 10:55 PM
Hi,
Please have a look at this output:
root@locutus:/failover/bin # grep 079B /var/tmp/symmir_CRMT8.out
0 CRMT8_001 079B * 0 Split
I want to cut CRMT8 out of that line …
root@locutus:/failover/bin # grep 079B /var/tmp/symmir_CRMT8.out | cut -c 28-32
CRMT8
… will do it but that restricts me to positions 28-32.
How can I cut from position 28 to the "_"?
Can anyone shine a light on this for me
regards,
Shane
Please have a look at this output:
root@locutus:/failover/bin # grep 079B /var/tmp/symmir_CRMT8.out
0 CRMT8_001 079B * 0 Split
I want to cut CRMT8 out of that line …
root@locutus:/failover/bin # grep 079B /var/tmp/symmir_CRMT8.out | cut -c 28-32
CRMT8
… will do it but that restricts me to positions 28-32.
How can I cut from position 28 to the "_"?
Can anyone shine a light on this for me
regards,
Shane
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2006 11:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2006 11:10 PM
05-09-2006 11:10 PM
Re: The cut command
Thanks Ninad,
That worked perfectly - 10 points
regards,
Shane
That worked perfectly - 10 points
regards,
Shane
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