- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- sed limitation 100 commands HP-UX with patch PHCO_...
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
05-16-2008 11:51 AM
05-16-2008 11:51 AM
sed limitation 100 commands HP-UX with patch PHCO_31246
Can you confirm that on HP-UX with patch PHCO_31246 there is still the 100 command limit with sed?
I realize gsed is a possible workaround, but I require confirmation of sed.
Thank you very much,
Trish
- Tags:
- sed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2008 12:46 PM
05-16-2008 12:46 PM
Re: sed limitation 100 commands HP-UX with patch PHCO_31246
td176> man sed
[...]
DESCRIPTION
sed copies the named text files (standard input default) to the
standard output, edited according to a script containing up to 100
commands. [...]
I'd tend to believe the doc, unless a test
showed that reality diverges therefrom.
td176> uname -a
HP-UX td176 B.11.23 U ia64 1928826293 unlimited-user license
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2008 02:36 PM
05-16-2008 02:36 PM
Re: sed limitation 100 commands HP-UX with patch PHCO_31246
The patch makes no mention of increasing the 100-ccommand limit and *it doesn't*. You can test that this way:
# perl -le 'print "s/a/b/g" for (1..99)' > /tmp/sedprog
# echo "aaa" | -f /tmp/sedprog
bbb
# perl -le 'print "s/a/b/g" for (1..100)' > /tmp/sedprog
sed: There are too many commands for the s/a/b/g function.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2008 03:01 PM
05-16-2008 03:01 PM
Re: sed limitation 100 commands HP-UX with patch PHCO_31246
I should add that depending on what the 'sed' filtration does, you can pipe together two or more 100-command limited programs to enable you to exceed the 100-command barrier:
# sed -f ./inputfile ./sedprog1 | sed -f ./sedprog2
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2008 10:32 PM
05-16-2008 10:32 PM
Re: sed limitation 100 commands HP-UX with patch PHCO_31246
That limitation is still documented on 11.31.