![]() |
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 |
| How do I search for 2 strings (AND operator) ? | Kartheg | UNIX for Dummies Questions & Answers | 14 | 09-11-2009 04:44 PM |
| how to search with 2 strings. | syamkp | Shell Programming and Scripting | 2 | 03-10-2008 04:50 AM |
| search a logfile for strings | amitrajvarma | UNIX for Dummies Questions & Answers | 0 | 11-25-2007 10:09 AM |
| Search between strings with an OR | pbsrinivas | Shell Programming and Scripting | 3 | 07-12-2007 04:46 AM |
| awk search for Quoted strings (') | kprattip | Shell Programming and Scripting | 13 | 07-10-2007 03:30 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Search for strings
I am trying to replace the word ACTIVE with 2002 in a file and I am getting the following error. Does anyone know what this means?
$ sed "s/ACTIVE/2002" mydata.txt > yourdata.txt sed: 0602-404 Function s/ACTIVE/2002 cannot be parsed. |
|
||||
|
you are missing a slash (/) after 2002 in your original command.
sed "s/ACTIVE/2002/" myfile.txt > yourfile.txt this replaces the first occurrence of text ACTIVE with 2002 in each line. g means it will replace all occurrences of the text ACTIVE with 2002. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|