X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Fri, 5 Mar 2010 16:32:56 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: symlinks: converting Windows shortcuts to cygwin style Message-ID: <20100305153256.GL7980@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <0105D5C1E0353146B1B222348B0411A208B5EEA1BC AT NIHMLBX02 DOT nih DOT gov> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0105D5C1E0353146B1B222348B0411A208B5EEA1BC@NIHMLBX02.nih.gov> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Mar 5 09:11, Buchbinder, Barry (NIH/NIAID) [E] wrote: > Does someone have a script that converts symbolic links from "Windows shortcuts with a special header and the R/O attribute set" to "plain files with a magic number, a path and the system attribute set". (See "(no)winsymlinks" in .) Something like that for lnk in $(find . -xdev -type l) do tgt=$(readlink $lnk) rm -f "$lnk" ln -s "$tgt" "$lnk" done Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple