links broken during a backup (not restore), need more info on how they work to fix & file bug with vendor

Brian Dessent brian@dessent.net
Sat May 17 00:52:00 GMT 2008


vapid@mindless.com wrote:

> Maybe someone can come up with a fancier find.  I had to spawn a bash to
> use the && and delay the evaluation of the `cygpath {}`.  There's a lot of
> quoting to deal with spaces in filenames.

You can speed things up a lot by only running cygpath once, e.g.:

(echo "@echo off"; \
 find / -name \*.lnk | cygpath -w -f - | \
 perl -ne 'chomp; print "attrib +R \"$_\"\n"') >doit.bat &&
cmd.exe doit.bat

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list