HPE GreenLake Administration
Operating System - HP-UX
1828959
Members
2119
Online
109986
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-02-2002 12:30 PM
05-02-2002 12:30 PM
Hi guys,
sometimes, I will have the following entry in the fstab file.
/dev/vgora2/dat2 /mnt/sprd/dat2 vxfs delaylog,mincache=direct,convosync=direct,nodatainlog 0 2
I want to write a script, so when I encounter similar entry as above, I want to endup only with the following info:
dev/vgora2/dat2 /mnt/sprd/dat2 vxfs dev/vgora2/dat2 /mnt/sprd/dat2 vxfs 0 2
What is the best way to do it?
Thanks a bunch!
sometimes, I will have the following entry in the fstab file.
/dev/vgora2/dat2 /mnt/sprd/dat2 vxfs delaylog,mincache=direct,convosync=direct,nodatainlog 0 2
I want to write a script, so when I encounter similar entry as above, I want to endup only with the following info:
dev/vgora2/dat2 /mnt/sprd/dat2 vxfs dev/vgora2/dat2 /mnt/sprd/dat2 vxfs 0 2
What is the best way to do it?
Thanks a bunch!
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 12:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 12:37 PM
05-02-2002 12:37 PM
Re: parsing
Hi Andi,
sed 's/delaylog,mincache=direct,convosync=direct,nodatainlog//' /etc/fstab > /etc/fstab.new
Verify /etc/fstab.new and move it as /etc/fstab after taking a copy of /etc/fstab.
-Sri
sed 's/delaylog,mincache=direct,convosync=direct,nodatainlog//' /etc/fstab > /etc/fstab.new
Verify /etc/fstab.new and move it as /etc/fstab after taking a copy of /etc/fstab.
-Sri
You may be disappointed if you fail, but you are doomed if you don't try
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 12:50 PM
05-02-2002 12:50 PM
Re: parsing
I suggest that you make a slight improvement to Rodney's awk script and test that this is actually a vxfs entry; you probably don't want swap entries. You might want hfs but the fix should be obvious.
awk '{if ($3 ~ /vxfs/){print $1,$2,$3,$1,$2,$3,$5,$6}}'
awk '{if ($3 ~ /vxfs/){print $1,$2,$3,$1,$2,$3,$5,$6}}'
If it ain't broke, I can fix that.
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