- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: sed strangeness
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
12-05-2000 11:58 AM
12-05-2000 11:58 AM
xena:/home/mcdermot/71ora> sed -f sed_script_bad tt.tmp
sed: Function 3982s/.*/ STORAGE ( INITIAL 1424 K NEXT 285 K PCTINCREASE 20 )/ cannot be parsed.
In this example, the sed command it is choking on is:
3982s/.*/ STORAGE ( INITIAL 1424 K NEXT 285 K PCTINCREASE 20 )/
To me this appears to be a valid sed command. Even more fun, this "spot" at which sed says it cannot parse a command line varies depending on the specific data in the sed command script.
In this case, sed chokes on the 44th line of a 57 line command file. But I can edit the command script and by playing around with the spaces in any of the preceeding command lines, the sed command runs just fine.
It doesn't matter what the input file is; I've tried a very short input file (as opposed to the long input file that is expected) and I get the same results.
One more variable - I've tried the same sed command on an HP-UX 10.20 machine and an HP-UX 11.0 machine - the commands fails on only the HP-UX 11.0 machine.
Any ideas? I'll post the input command file if anyone requests it.
Thanks,
Jon
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2000 12:16 PM
12-05-2000 12:16 PM
Re: sed strangeness
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2000 12:38 PM
12-05-2000 12:38 PM
Re: sed strangeness
We're going to apply the latest sed cumulative patch and libc cumulative patch tonight and see if that fixes the problem.
Any other ideas would be welcome too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2000 07:01 PM
12-05-2000 07:01 PM
Re: sed strangeness
If you can't get sed to act right, you may have to consider using perl or awk.
--Bruce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2000 11:24 PM
12-05-2000 11:24 PM
SolutionAs you said that 'sed' was behaving differently on 10.20 and 11.0, this points me to patch PHCO_22760 [sed(1) cumulative patch].
It's only been posted on 4th december 2000.
here is the link:
http://europe-support.external.hp.com/wpsl/bin/doc.pl/sid=5a5df3e70446f9258a/screen=wpslCandidateList
Best regards,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2000 04:28 AM
12-06-2000 04:28 AM
Re: sed strangeness
Maybe it's being picky about having a space between the pattern and command? You might also try addressing the line as '3982,3982' just for variety
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2000 05:20 AM
12-06-2000 05:20 AM
Re: sed strangeness
I will do a little more testing but I think we can consider this problem solved.
Regards,
Jon