Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: csh (or tcsh) help needed
paul%whooppee.com@localhost (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 :)
Home |
Main Index |
Thread Index |
Old Index