- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problem reading a text 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
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
тАО05-08-2002 06:05 AM
тАО05-08-2002 06:05 AM
I got this error on some text files that I'm trying to read with dtpad:
Embedded Nulls stripped from file.
I get this error with dtpad, but when I use shell commands like "cat" or "more" I can read it... I'm practicaly sure of that error is that the application that created the file, have not ended is text file correctly... But I just want to know how can I be sur of that, if it's possible to know!!
thanks
jonathan
Solved! Go to Solution.
- Tags:
- unprintable chars
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2002 06:10 AM
тАО05-08-2002 06:10 AM
Re: Problem reading a text file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2002 06:37 AM
тАО05-08-2002 06:37 AM
Re: Problem reading a text file
You can do a cat of the file over another file, this put for you the EndOfFile character, then try to open:
cat file > filenew
dtpad filenew
Other option is use od -c but if you want to view the last line you can use tail like that:
tail -1 file | od -c
Regards,
Justo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2002 07:37 AM
тАО05-08-2002 07:37 AM
Re: Problem reading a text file
(this also happens to be the file that contains the error message).
My guess is that any file that contains an embedded null (ascii zero, or cntrl-@) will generate this message.
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2002 07:43 AM
тАО05-08-2002 07:43 AM
Re: Problem reading a text file
ed filename
then enter ,l
the ,l will give you end of line, tab and other unprintable characters.
nancy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2002 10:29 AM
тАО05-08-2002 10:29 AM
Re: Problem reading a text file
I tried to "cat file > newfile" then read the newfile with dtpad, and it haven't worked...
So any ideas??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2002 10:38 PM
тАО05-08-2002 10:38 PM
Solution* How about using "vi" ?
That is, #vi file1.txt
* To remove all control and non-printable chars so that you can use "dtpad" without error, you can consider :
#strings file1.txt > file2.txt
#dtpad file2.txt
NOTE: Even empty lines would be removed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2002 11:01 PM
тАО05-08-2002 11:01 PM
Re: Problem reading a text file
Apart from strings, you can also try col -b to remove special characters:
# cat file1.txt | col -b > file2.txt
# dtpad file2.txt
Hope this helps. Regards.
Steven Sim kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2002 12:38 AM
тАО05-09-2002 12:38 AM
Re: Problem reading a text file
2- sed -n -e '1,$p' /tmp/88 >/tmp/889