Lately I've been needing to delete new untracked files from my versioning system. Being in linux I use:
hg status -un|xargs rm
And it works nice, but when doing it in windows, hg status lists paths with backslash so that is where stuff goes wrong. So then I try:
hg status -un|sed 's/\\/\//g'
...but I get the error: sed: -e expression #1, char 8: unterminated `s' command
Then I try some ascii:
`hg status -un|sed 's/\o134/\o57/g'`
...that gets me: sed: -e expression #1, char 14: Trailing backslash
And some scripting:
hg status -un|sed 's/`echo \`/`echo /`/g'
...that gets me: sed: -e expression #1, char 19: unknown option to `s'
I try all the last with any other characters and I get the expected output... so I'm completely lost. I have cygwin, of course, and I want to avoid using a file (that is what I've been doing).
Thanks in advance