- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- convert data file to text or ascii file
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-10-2002 04:35 PM
05-10-2002 04:35 PM
convert data file to text or ascii file
I have a problem with reading data file..
when I read the file using vi or cat. a few lines and control characters are shown
like "_^He_^Hs" nd "_^Hp_^Hr" etc. I attached that file
how can I convert the file to read it?
Post that solution thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2002 05:33 PM
05-10-2002 05:33 PM
Re: convert data file to text or ascii file
If you want to remove special or ctrl characters, you can do any of the following to strip into pure text or ascii:
1) Use strings:
# strings infile > outfile
2) Use col:
# cat infile | col -b > outfile
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2002 05:35 PM
05-10-2002 05:35 PM
Re: convert data file to text or ascii file
to view the file. It will display the printable ASCII and octal values for other characters.
Man od for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2002 08:08 PM
05-10-2002 08:08 PM
Re: convert data file to text or ascii file
you may like to use mutilple sed's like I tried these 3 to get o/p.
#cat test | sed -e "1,$ s/\^//g"|sed -e "1,$ s/\;//g"|sed -e "1,$ s/\]//g"
C
console\263Rbonline<\334`Dpts/2192.168.1.170<\333?Jpts/2192.168.1.170ts/3zerg<\204Mdpts/2192.168.1.160K?pts/2211.237.50.246K?pts/2211.237.50.246
\263!Spts/6online\263!8pts/6online..
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2002 05:31 AM
05-12-2002 05:31 AM
Re: convert data file to text or ascii file
tr -d [:cntrl:]
HTH
mark