Menu

#9 find and backslash

open
nobody
None
5
2005-12-20
2005-12-20
Anonymous
No

When using "find" in Windows, the filenames are
returned with backslash. Backslahses are run throgh
the printf conversion somewhere inside find and the
resulting filenames can not be used.

Try e.g. in c:\

find . -type f -exec echo "{}" ;

I think there should be option (in windows version)
that could return the path separators with forward
slashes, or that the backslashes could be preserved.

Discussion


Log in to post a comment.