Re: Script

From: Luis Latour (Luis.Latour@VMD.DESJARDINS.COM)
Date: Thu May 22 2003 - 15:19:11 EDT


Greetings Subrata,

      You could try using a regular expression, such as: [eE]1.[Tt][Xx][Tt]

      I'm sure it could be made more elegant...

      You could for instance do something like:

      $ls -1 [eE]1.[Tt][Xx][Tt]

      which should list all the matching files on separate lines.

      Hope this helps!!

      Luis.

_________________________________________
Luis Latour
Administrateur de Systèmes UNIX / WebSphere
luis.latour@vmd.desjardins.com
514-281-2244 ext 7607

                      Subrata Mondal
                      <smondal@ASSYST.N To: aix-l@Princeton.EDU
                      ET> cc:
                      Sent by: IBM AIX Subject: Script
                      Discussion List
                      <aix-l@Princeton.
                      EDU>

                      22/05/2003 15:18
                      Please respond to
                      IBM AIX
                      Discussion List

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

_
- The integrity of the transmitted information in this E-mail is not
guaranteed by Desjardins Securities which accepts no liability for any
damage caused by its fraudulent alteration. - This E-mail is confidential
and is intended for the sole use of the recipient or authorized
representative of the recipient. Any person who receives this E-mail by
mistake shall immediately notify the sender and destroy it. Any other use
of the information therein is strictly prohibited. - In no manner does this
notice limit other more restrictive warnings which may have been
transmitted to you by Desjardins Securities.
- L'intégrité des informations transmises dans ce courriel n'est pas
garantie par Valeurs mobilières Desjardins qui décline toute responsabilité
quant aux dommages causés par leur modification frauduleuse. - Ce courriel
est confidentiel et est à l'usage exclusif de son destinataire. Toute
personne qui reçoit celui-ci par erreur doit en informer immédiatement son
expéditeur et le détruire sur le champs. Toute autre utilisation des
informations qu'il contient est strictement interdite. - Le présent
avertissement ne limite aucunement tout autre avertissement plus restrictif
qui vous aurait été transmis par Valeurs mobilières Desjardins.



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