HPE GreenLake Administration
Operating System - HP-UX
1829116
Members
2294
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
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-26-2001 06:16 PM
02-26-2001 06:16 PM
sed help
I have used sed to replace one word in a file, but the replaced file can't be open by a form engine. (the file is form file, but can be regarded as text doc)
I am badly need help:
1) any parameter should be used to keep original lines/patern intact?
2) any other program is better in serving this purpose?
Thanks a lot,
Steven
I am badly need help:
1) any parameter should be used to keep original lines/patern intact?
2) any other program is better in serving this purpose?
Thanks a lot,
Steven
Steve
- Tags:
- sed
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2001 09:11 AM
02-27-2001 09:11 AM
Re: sed help
sed works good for changing text in a file.
If you compared the original with the new and the differences only shows the word you changed, then I suspect the application may not tolerate text changes. For example a tar save has a checksum in it and if you change just one character in the file, the checksum will be incorrect and tar will say its a bad tar file.
It is possible your "form" application could have some sort of dependency like that.
If you compared the original with the new and the differences only shows the word you changed, then I suspect the application may not tolerate text changes. For example a tar save has a checksum in it and if you change just one character in the file, the checksum will be incorrect and tar will say its a bad tar file.
It is possible your "form" application could have some sort of dependency like that.
There be dragons...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2001 09:18 AM
02-27-2001 09:18 AM
Re: sed help
After sed, the file seems to have sth missing that form engine claims to have some table missing.
Since I have >700 files need to be changed, if I have to change them manually in wordpad, or form editor, the world is dead.
What if other editor such as ed?
Since I have >700 files need to be changed, if I have to change them manually in wordpad, or form editor, the world is dead.
What if other editor such as ed?
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2001 11:39 AM
02-27-2001 11:39 AM
Re: sed help
Since you mentioned "wordpad", I assume these are PC text files. A PC text file ends each line with CR/LF, where unix text files end with LF only.
If this is not handled correctly, a PC application could get confused about the data.
(for instance you use ftp to transfer the files and select the ascii option one time, and binary the other).
Other bulk editors do exist on hpux, like awk and perl. But "sed" is a safe edittor for text changing. Compare the old file to the new (using diff command) and validate the change you are doing, is being done correctly.
If this is not handled correctly, a PC application could get confused about the data.
(for instance you use ftp to transfer the files and select the ascii option one time, and binary the other).
Other bulk editors do exist on hpux, like awk and perl. But "sed" is a safe edittor for text changing. Compare the old file to the new (using diff command) and validate the change you are doing, is being done correctly.
There be dragons...
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