| www.delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <482E2B24.ED4E0F99@dessent.net> |
| Date: | Fri, 16 May 2008 17:47:32 -0700 |
| From: | Brian Dessent <brian AT dessent DOT net> |
| X-Mailer: | Mozilla 4.79 [en] (Windows NT 5.0; U) |
| MIME-Version: | 1.0 |
| To: | vapid AT mindless DOT com |
| CC: | cygwin AT cygwin DOT com |
| Subject: | Re: links broken during a backup (not restore), need more info on how they work to fix & file bug with vendor |
| References: | <20080516225304 DOT E3502104F0 AT ws1-3 DOT us4 DOT outblaze DOT com> |
| X-IsSubscribed: | yes |
| Reply-To: | cygwin AT cygwin DOT com |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
vapid AT mindless DOT 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |