In message <cacm9hj0ls2i-ehs+htg9zpj1nxrnp-5tsoxndsmqv3szeyu...@mail.gmail.com> , Luis David Leija writes:
>I am monitoring for files named according to the following strings: > >716.TXT.C01 >716.TXT.C02 >716.TXT.C03 >716.TXT.C04 >716.TXT.C05 >718.TXT.C00 > >The log line includes the path in which they appear, which is : > >/ftpdata/path/download/ > >I can pull these files from the log with the following shell command > >cat /logs/xferlog | grep 71[68].TXT.C0 > >The lines in the log look like : > >Tue Aug 23 07:42:27 2011 5 X.X.X.X 676410 /ftpdata/path/download/716.TXT.C01 >a n i r userID ftp 0 * > >I want to process any file that starts with a 71, followed by a 6 or 8, then >followed by a .TXT.C0. I want to feed the filename, without the path, to a >process called in the action= section. I was thinking something like: > >pattern=/ftpdata/siac/download/(71[6|8]\.TXT\.C0[0|1|2|3|4|5]) >action=myproc.sh $1 > >But nothing so far. Any ideas? Try: pattern=/ftpdata/siac/download/(71[68]\.TXT\.C0[012345]) [...] is a character class and any character in that class will match. Putting the | bars inside the character class could be a no-op but they are not needed and could be trigger some form of alternation. -- -- rouilj John Rouillard =========================================================================== My employers don't acknowledge my existence much less my opinions. ------------------------------------------------------------------------------ EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev _______________________________________________ Simple-evcorr-users mailing list Simple-evcorr-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users