![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| get rid of special characters | vakharia Mahesh | UNIX and Linux Applications | 4 | 07-29-2008 02:36 PM |
| grep with special characters | guruparan18 | UNIX Desktop for Dummies Questions & Answers | 3 | 06-12-2008 06:58 AM |
| Grep with Special Characters | Vashj | Shell Programming and Scripting | 6 | 11-27-2007 06:51 AM |
| special characters | nawnaw | UNIX for Dummies Questions & Answers | 2 | 05-18-2004 04:17 PM |
| awk/sed with special characters | apalex | Shell Programming and Scripting | 5 | 05-06-2002 05:40 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Grep not working - special characters??
I have a file that I am processing with a while loop from, in come cases the grep/sed command (strings record | grep “errorDetail” | sed 's&*errorDetail\(.*)\(/errorDetail\).*&\1&') works and produces the data I am after and in some it does not. I have inspected the data within the failing records, they definitely contain the 'errorDetail' field that I am after. I am of a strong suspicion that some of the records contain some characters that the grep does not like. However, I do not know which chars. It may be some binary character that is causing the problem. When I put each record thorugh s/[!@#\$%^&*()]//g' filename, some of the records that were giving me incorrect data give me the errorDetail. However, not all. Any ideas how I can resolve this issue?
Last edited by gugs; 07-31-2008 at 07:19 AM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|