2
How to make this an alias in zsh?
svn status | grep "^?" | awk -F " " '{print $2}' | tr "\n" "\0" | xargs -0 svn add
I know it should be something along the lines:
alias sall = "the command"
But as the line mixes " with ' I don't know how to handle that.
The escaped characters version gives an error about a ' not being matched. But the first version works, if you make it alias sall='svn st...' (no whitespace) – Nerian – 2011-02-17T17:54:57.100
@Nerian: If you use double quotes around the awk command, you'll need to escape the dollar sign:
awk -F " " "{print \$2}"
– Paused until further notice. – 2011-02-17T17:55:15.9772Sorry, Bash needs it. Apparently zsh doesn't. After trying both, I see the difference. – Paused until further notice. – 2011-02-17T17:57:25.520