[psas-software] Script help please
jason at lunkwill.org
Tue Nov 1 16:16:42 PST 2005
On Tue, 1 Nov 2005, Jay Beck wrote:
> REGEXP="'s/ \t//g'"
> echo "sed Regular Expression is: -->"$REGEXP"<--"
> sed $REGEXP
> jay at rocket:~/bin$ cat smData2 | ./exp2
> sed Regular Expression is: -->'s/ \t//g'<--
> sed: -e expression #1, char 1: unknown command: `''
> jay at rocket:~/bin$
> can anyone explain why the script acts different and correct it?
You're doubly quoting the string, so the ' stays in. Try:
More information about the psas-avionics