- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- General
- >
- Problem reading a text file
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP