| | |
Replacing text
Please support our Shell Scripting advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: May 2005
Posts: 215
Reputation:
Solved Threads: 16
If you use code tags your post would be a little easier to read. Try this
I am not sure, but the "*" might not wotrk with sed. let me know if this works
Shell Scripting Syntax (Toggle Plain Text)
pwd | sed "s/\/home\/httpd\/vusers\/*.domain.com\/web_users\/chris2/\/chris.domain.com\/web_users\/chris2/g"
I am not sure, but the "*" might not wotrk with sed. let me know if this works
Last edited by shanenin; Jul 21st, 2006 at 11:34 pm.
In a perfect world exceptions would not be needed.
![]() |
Similar Threads
- Replacing text within a file using awk (Shell Scripting)
- replacing text with sed (Shell Scripting)
- want to write latin translator what language should i choose (Computer Science)
Other Threads in the Shell Scripting Forum
- Previous Thread: printing path and making it relative.
- Next Thread: i want to get output through shell script
Views: 5633 | Replies: 12
| Thread Tools | Search this Thread |
Tag cloud for Shell Scripting





