- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sed Maximum Line Length?
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
Discussions
Discussions
Discussions
Forums
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
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
тАО10-21-2008 09:22 AM
тАО10-21-2008 09:22 AM
Solved! Go to Solution.
- Tags:
- sed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2008 09:26 AM
тАО10-21-2008 09:26 AM
Re: Sed Maximum Line Length?
I suspect that this is about 2048 characters, although I can't say for sure.
Use Perl --- it doesn't have silly limits. Post your command (that dumps).
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2008 09:30 AM
тАО10-21-2008 09:30 AM
Re: Sed Maximum Line Length?
http://www.gnu.org/software/sed/manual/sed.html#Limitations
There is a comment on the above limits to..
The posix standard specifies that conforming sed implementations shall support at least 8192 byte line lengths.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2008 09:32 AM
тАО10-21-2008 09:32 AM
Re: Sed Maximum Line Length?
cat $TMP_FILE_1 | sed -e 's/start=//g' -e 's/stop=//g' -e 's/BalancerEnable//g' -e 's/BalancerDisable//g' -e 's/kill+//g' -e 's/msg=AllReference//g' -e 's/msg=Shutdown//g' -e 's/msg=ShutdownCritical//g' > ${AMC_HOME}/work/AmcDmn_${USER}RO_output.xml
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2008 09:42 AM
тАО10-21-2008 09:42 AM
SolutionSince you are using simple substitutions, you can easily convert your needs to Perl:
# perl -pe 's/start=//g;s/stop=//g;s/BalancerEnable//g' file
Notice that all I did is use a semicolon to repeat each substitution instead of separate 'sed -e' programs.
If you want to update inplace, making a backup copy of your file do:
# perl -pi.old -e 's/start=//g;s/stop=//g;s/BalancerEnable//g' file
...the original file wikll be preserved as "file.old".
Regards!
...JRF...
- Tags:
- Perl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2008 12:29 PM
тАО10-21-2008 12:29 PM
Re: Sed Maximum Line Length?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2008 12:32 PM
тАО10-21-2008 12:32 PM