- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- remove /dev/dsk using sed in a file
Operating System - HP-UX
1755130
Members
3023
Online
108830
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
Discussions
Discussions
Forums
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
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
тАО01-15-2010 11:36 AM
тАО01-15-2010 11:36 AM
Hello,
I have a file with all the disk, stating with /dev/dsk/c1r2d3 and so on.
How can I remove /dev/dsk/ and just keep c1t2d3 in the file.
Appreciate your help.
Regards,
Mp
I have a file with all the disk, stating with /dev/dsk/c1r2d3 and so on.
How can I remove /dev/dsk/ and just keep c1t2d3 in the file.
Appreciate your help.
Regards,
Mp
If there is problem then don't think as problem, think as opportunity.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2010 11:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2010 12:12 PM
тАО01-15-2010 12:12 PM
Re: remove /dev/dsk using sed in a file
Hello,
Thanks James.
Appreciate your help.
Regards,
MP
Thanks James.
Appreciate your help.
Regards,
MP
If there is problem then don't think as problem, think as opportunity.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2010 03:26 PM
тАО01-15-2010 03:26 PM
Re: remove /dev/dsk using sed in a file
Nothing magic about "/" here. If something
else would be more convenient, then use it
instead.
$ echo '/dev/dsk/c1r2d3' | sed -e 's|/dev/dsk/||'
c1r2d3
else would be more convenient, then use it
instead.
$ echo '/dev/dsk/c1r2d3' | sed -e 's|/dev/dsk/||'
c1r2d3
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP