/ Published in: Bash
sed is required because hg status returns paths with \ (backslash) instead of / (slash). I'm using the Windows version of Mercurial, in a linux version you can omit the sed part.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
hg status|grep ^?|sed -e 's/\\/\//g'|awk '{print $2}'|xargs rm