p...@whooppee.com (Paul Goyette) writes:

>any csh experts handy?  I'm trying to define an alias in my .cshrc to 
>remove dollar-signs, but I can't seemm to get the quoting right:

>       alias Q4 'sed -e "s/\$//g"'


alias Q4 sed -e s/\\\\\\\$//g

The expression you want to pass to sed is:  s/\$//g
For the command you need to quote \ and $:  s/\\\$//g
For the alias you need to quote it again:   s/\\\\\\\$//g

Ugly but simple :)

Reply via email to