HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- problems with sed
Operating System - HP-UX
1834665
Members
2534
Online
110069
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
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
02-01-2002 10:09 AM
02-01-2002 10:09 AM
problems with sed
I'm trying to implement a generic backup script from Oracle press and it used sed at various points; but the sed commands don't work. I don't know if there are any hp/ux variations that could be causing my problems. Example follows:
file $DBBACKUP contains 9 lines of filename & tablespace name.
SED="sed -e '/selected\.$/d' -e '/^---.*--$/d' -e '/^FILE_NAME/d' $DBBACKUP"
eval $SED | while read FILE TABLESPACE
do
The statements inside the do don't get executed.
Thanks
file $DBBACKUP contains 9 lines of filename & tablespace name.
SED="sed -e '/selected\.$/d' -e '/^---.*--$/d' -e '/^FILE_NAME/d' $DBBACKUP"
eval $SED | while read FILE TABLESPACE
do
The statements inside the do don't get executed.
Thanks
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2002 10:36 AM
02-01-2002 10:36 AM
Re: problems with sed
Devin, can you post the file? it would help, so we can see how and waht you are matching to.
live free or die
harry
live free or die
harry
Live Free or Die
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2002 10:53 AM
02-01-2002 10:53 AM
Re: problems with sed
Devin,
Harry is right, it is hard to tell from what you have given us.
The portion you provided looks good? Have you tried running from the command line?
Attempt to run the sed from the command line.
sed -e '/selected\.$/d' -e '/^---.*--$/d' -e '/^FILE_NAME/d' /the/dbbackup/file
If you get nothing back, that is why the do is doing nothing.
Hope this helps.
...jcd...
Harry is right, it is hard to tell from what you have given us.
The portion you provided looks good? Have you tried running from the command line?
Attempt to run the sed from the command line.
sed -e '/selected\.$/d' -e '/^---.*--$/d' -e '/^FILE_NAME/d' /the/dbbackup/file
If you get nothing back, that is why the do is doing nothing.
Hope this helps.
...jcd...
If I had only read the instructions first??
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