Re: Script

From: Pugliese, Edward (s11018@SLK.COM)
Date: Thu May 22 2003 - 15:19:36 EDT


grep -i "e1.txt" will ignore case and should match all you samples

-----Original Message-----
From: Subrata Mondal [mailto:smondal@ASSYST.NET]
Sent: Thursday, May 22, 2003 3: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