![]() |
|
|
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 |
| mv Filename variable to another filename | gzs553 | Shell Programming and Scripting | 3 | 04-14-2008 05:19 PM |
| shortcut for tar cvf - [filename] | gzip > [filename].tar.gz | bcamp1973 | UNIX for Dummies Questions & Answers | 4 | 12-11-2007 05:45 PM |
| how to read double consecutive space in filename for bash shell | james_falco | UNIX for Dummies Questions & Answers | 1 | 07-17-2007 05:32 PM |
| Unix shell script (grep -A 6 -B 2 "ORA-" filename | el_guero | Shell Programming and Scripting | 7 | 04-25-2007 06:37 PM |
| How to send filename as variable in a shell script | gthokala9 | Shell Programming and Scripting | 6 | 06-27-2006 02:23 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
sed / shell - how to use $filename
I've forgotten how to use a filename parameter
using sed inside a shell script. What I want to do is replace a string inside a file with the name of the file being processed. I think this should work .. for filename do sed -e "s/xxx/$filename/" ... ... done Thanks! Ps: i.e. I want to change We need to put xxx in the answer. into We need to put filename in the answer. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|