This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: links broken during a backup (not restore), need more info on how they work to fix & file bug with vendor
- From: Brian Dessent <brian at dessent dot net>
- To: vapid at mindless dot com
- Cc: cygwin at cygwin dot com
- Date: Fri, 16 May 2008 17:47:32 -0700
- Subject: Re: links broken during a backup (not restore), need more info on how they work to fix & file bug with vendor
- References: <20080516225304.E3502104F0@ws1-3.us4.outblaze.com>
- Reply-to: cygwin at cygwin dot com
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/