Re: Script

From: Darryl Ousterhout (D.Ousterhout@LABSAFETY.COM)
Date: Thu May 22 2003 - 15:32:12 EDT


Pretty simple actually, I think maybe this is what you are looking for:

ls | grep -i e1.txt

-Darryl

-----Original Message-----
From: Subrata Mondal [mailto:smondal@ASSYST.NET]
Sent: Thursday, May 22, 2003 2:18 PM
To: aix-l@Princeton.EDU
Subject: Script

I have to check for a file namely e1.txt and it may come in any flavor -
how do we handle this?

1. e1.txt
2. E1.txt
3. e1.TXT
4. e1.Txt
5. E1.TXT

and so on -
Right now I am using the pipe command to find out the file name -
like grep -E "e1.txt | E1.txt | ..........." >file_name

is there a simpler way ?

Subrata



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:51 EDT