This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
bash script Q
- 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>
- Date: Fri, 5 Apr 2002 17:20:10 +0100
- Subject: bash script Q
- Reply-to: <macarthy at iol dot ie>
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/