delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
Reply-To: | <macarthy AT iol DOT ie> |
From: | "Justin MacCarthy" <macarthy AT iol DOT ie> |
To: | "Ilug AT Linux DOT Ie" <ilug AT linux DOT ie> |
Cc: | <cygwin AT cygwin DOT com> |
Subject: | bash script Q |
Date: | Fri, 5 Apr 2002 17:20:10 +0100 |
Message-ID: | <OFEGLPGPCHPACFLJPAILOEMNCOAA.macarthy@iol.ie> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
Importance: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4910.0300 |
Hi, anyone point me to the best bash script option for checking the first 2 characters of all the files in a directory? logic of the script is for each file in directory test if the first 2 chars are "%!" print Filename valid if not print Filename not valid Does magic do something like this ? Thanks Justin -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |