![]() |
|
|
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 |
| Parsing special characters between C and XML.. | ronix007 | UNIX for Dummies Questions & Answers | 1 | 05-10-2008 07:39 AM |
| How to find special characters?? | sumitc | AIX | 3 | 05-04-2008 09:20 PM |
| Quoting of special characters | vibhor_agarwali | UNIX for Dummies Questions & Answers | 1 | 01-30-2005 04:58 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 |
|
||||
|
Put a \ in front of special characters in SED
I have a file with a text field that could contain characters the sed sees as special characters.
I need to be able to replace this text with other text, however if I use sed like: sed 's/oldtext/newtext/g' It errors stating garbled (something or other), which I am putting down to the fact it is reading the text literally and think the likes of / etc should be treated as special chars. Is there a way around this so I can get it to ignore what it thinks are special chars? (just see the text - Wow *?/ woopee do /$) By the way thats not the text I want to add ![]() |
| Bookmarks |
| Tags |
| perl, perl shift, regex, regular expressions, shift, shift perl |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|