Forum: Shell Scripting Aug 26th, 2009 |
| Replies: 4 Views: 647 Use a different separator.
Eg.
sed -e "s@DATEST\@$DATESTART@g"
I can't figure out where the real separator is in the middle of the expression.
But you get the idea. |
Forum: Shell Scripting May 9th, 2009 |
| Replies: 2 Views: 569 http://www.rt.com/man/chmod.1.html |
Forum: Shell Scripting Jan 18th, 2009 |
| Replies: 2 Views: 738 > sed -i 's/oldInfo/newInfo/g' "$dataFile"
You need to watch your shell's quoting rules.
Things in single quotes are preserved as is
Things in double quotes allow $substitutions.
Perhaps then... |
Forum: Shell Scripting Dec 31st, 2008 |
| Replies: 12 Views: 1,419 > You can pipe commands to ex(1) to edit a file 'in place'.
Like I said in my first post, the editors like ed, ex and vi merely hide the detail from you. There's still a write / delete / rename... |
Forum: Shell Scripting Nov 24th, 2008 |
| Replies: 1 Views: 903 b* means zero-or-more occurrences of b
And since even "hello" has zero or more instances of b, then it gets matches. This is somewhat different to the pattern matching for filenames at the command... |