![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to find a file named vijay in a directory using find command | amirthraj_12 | UNIX for Dummies Questions & Answers | 6 | 10-25-2008 09:37 AM |
| find and replace string in a directory files | koti_rama | Shell Programming and Scripting | 2 | 05-30-2008 12:48 AM |
| Find/replace to new file: ksh -> perl | McLan | Shell Programming and Scripting | 1 | 05-16-2008 12:14 AM |
| perl find directory only if modified in last hour | frustrated1 | Shell Programming and Scripting | 0 | 10-12-2007 01:50 PM |
| Parentheses in perl find/replace | Jeffish | Shell Programming and Scripting | 3 | 08-21-2007 08:10 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
how to use sed or perl command to find and replace a directory in a file
how to use sed command to find and replace a directory
i have a file.. which contains lot of paths ... for eg.. file contains.. /usr/kk/rr/12345/1 /usr/kk/rr/12345/2 /usr/kk/rr/12345/3 /usr/kk/rr/12345/4 /usr/kk/rr/12345/5 /usr/kk/rr/12345/6 /usr/kk/rr/12345/7 /usr/kk/rr/12345/8 i want to replace /usr/kk/rr/12345/ with /usr/kk/yy/12555/ pls help |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Code
Try this
Quote:
|
|||
| Google The UNIX and Linux Forums |