delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/02/24/22:41:31

X-Spam-Check-By: sourceware.org
Message-ID: <2124967.1140838877859.JavaMail.chartpacs@mac.com>
Date: Fri, 24 Feb 2006 22:41:17 -0500
From: Michael Banks <chartpacs AT mac DOT com>
To: cygwin AT cygwin DOT com
Subject: [Newbie] Opening Files in a Folder
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

Hello,

Suppose I have a folder on the desktop that contains a number of files. I would like to select only the .jpg files and then open them in a) a particular app if possible, or b) whatever app is associated with the .jpg extension.

I think the syntax would look like: 
find "C:/path/to/desktop/images" -iname "*.jpg" -print0 | xargs -0 <some command to open these files>

I don't know what should be substituted for <some command to open these files>. Any ideas?

Regards,
Sean Mills

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019