/ Published in: Bash
![](/img/icon_sav.png?v3)
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
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)