- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Corrupted files
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
тАО04-29-2003 03:10 AM
тАО04-29-2003 03:10 AM
Corrupted files
I have found some corrupted files on one filesystem. The files is ordinary text files. Is there any fast way to check if a file contains only printable characters.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2003 03:12 AM
тАО04-29-2003 03:12 AM
Re: Corrupted files
# cat filename |vis
vis will show garbage as \002 for example.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2003 03:13 AM
тАО04-29-2003 03:13 AM
Re: Corrupted files
# file *
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2003 03:23 AM
тАО04-29-2003 03:23 AM
Re: Corrupted files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2003 03:27 AM
тАО04-29-2003 03:27 AM
Re: Corrupted files
man file.
to view the contents, strings filename.
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2003 04:20 AM
тАО04-29-2003 04:20 AM
Re: Corrupted files
...will report ascii text or not. ASCII text is printable characters.
strings file_name |more
...will allow you to convert binary to ascii text for reading purposes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2003 04:54 AM
тАО04-29-2003 04:54 AM
Re: Corrupted files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2003 06:45 AM
тАО04-29-2003 06:45 AM
Re: Corrupted files
As mentioned, the vis command can be used scan a file and if the output contains \0something, then there is at least one non-printable ASCII character.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2003 07:29 AM
тАО04-29-2003 07:29 AM
Re: Corrupted files
Thank you everybody. vis show there is strange characters in som of the files. The problem seems to be with large files (>1MB). I think I first have to find out how the files have been corrupted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2003 07:47 AM
тАО04-29-2003 07:47 AM
Re: Corrupted files
'cksum' executes a hashing algorithm for the puspose of error correction and the results will be the same if a successful transport occurred.