![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| need to find last character in each line in all files | dbsurf | Shell Programming and Scripting | 7 | 01-24-2008 09:35 AM |
| Null Character Handling | npk2210 | Shell Programming and Scripting | 3 | 09-29-2007 04:51 AM |
| Replacing character in file with null value | HLee1981 | Shell Programming and Scripting | 18 | 07-18-2006 01:33 PM |
| batch delete using find, files with # character | tphyahoo | UNIX for Dummies Questions & Answers | 0 | 05-30-2006 12:05 PM |
| sending a null character to a terminal | vertigo23 | UNIX for Advanced & Expert Users | 3 | 09-30-2005 09:58 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Find files which contain a null character
Hi,
I would like to use grep to find files which contain NULL characters. I'm not sure how to represent the null character in the grep statement. Could anyone help please? Thanks! Helen ![]() |
|
||||
|
Octal or hex in sed
Hi,
Is it possible to use octal or hex in sed? The problem I have is that I need to replace a NULL character (ie hex 00 or octal 000) with the string "NULL_CHARACTER". tr would only replace the null character with one correstponding character. I would need to replace the null with a string of characters as above. Many thanks Helen ![]() |
|
||||
|
We managed to get around the problem in the end.
So for future reference: we used od -b to turn the file into octal format. We then did a grep for " 000" in the file (note space before 000). This confirmed the file had a null character. Just finding files with the null character was sufficient - we didn't look any further into replacing the null character. Cheers Helen ![]() |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|