Search Results

Showing results 1 to 5 of 5
Search took 0.01 seconds.
Search: Posts Made By: Salem ; Forum: Shell Scripting and child forums
Forum: Shell Scripting Aug 26th, 2009
Replies: 4
Views: 647
Posted By Salem
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
Posted By Salem
Forum: Shell Scripting Jan 18th, 2009
Replies: 2
Views: 738
Posted By Salem
> 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
Posted By Salem
> 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
Posted By Salem
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...
Showing results 1 to 5 of 5

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC