![]() |
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 |
| Remove directory that has special Characters | datherriault | UNIX for Dummies Questions & Answers | 12 | 01-14-2009 05:53 PM |
| get rid of special characters | vakharia Mahesh | UNIX and Linux Applications | 4 | 07-29-2008 01:36 PM |
| Help replacing or scrubbing unicode characters | roninuta | Shell Programming and Scripting | 3 | 01-21-2008 11:39 AM |
| problem with Unicode characters insertion | suman_jakkula | AIX | 0 | 02-11-2006 01:20 AM |
| How to display unicode characters / unicode string | jackdorso | High Level Programming | 3 | 05-20-2005 01:09 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
remove special and unicode characters
Hi,
How do I remove the lines where special characters or Unicode characters appear? The following query does work but I wonder if there is a better way. cat test.txt | egrep -v '\)|#|,|&|-|\(|\\|\/|\.' The following lines show that my query is incomplete. Warning: The word "*Khan" is invalid. The character '*' (U+2A) may not appear at the beginning of a word. Skipping word. Warning: The word "Khan]" is invalid. The character ']' (U+5D) may not appear at the end of a word. Skipping word. Warning: The word "Khandewa;l" is invalid. The character ';' (U+3B) may not appear in the middle of a word. Skipping word. Warning: The word "[khanna" is invalid. The character '[' (U+5B) may not appear at the beginning of a word. Skipping word. Warning: The word "Khar**Closed" is invalid. The character '*' (U+2A) may not appear in the middle of a word. Skipping word. Warning: The word "Khelani]" is invalid. The character ']' (U+5D) may not appear at the end of a word. Skipping word. Warning: The word "Khwaja[physician]" is invalid. The character '[' (U+5B) may not appear in the middle of a word. Skipping w ord. Warning: The word "Kids@play" is invalid. The character '@' (U+40) may not appear in the middle of a word. Skipping word. |
![]() |
| Bookmarks |
| Tags |
| egrep or, special character |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|