Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Reply-To: From: "Justin MacCarthy" To: "Ilug AT Linux DOT Ie" Cc: Subject: bash script Q Date: Fri, 5 Apr 2002 17:20:10 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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/