I'm trying to create a Perl program to read a directory and the files in them. The directory structure looks like this....
cd /devt/prod/retrans/epix change to directory
contents of this directory has directories in it dyearmonthday...
drwxrwxr-x 2 settlec settle 40960 Feb 17 21:25 d20070217
drwxrwxr-x 2 settlec settle 40960 Feb 18 21:14 d20070218
drwxrwxr-x 2 settlec settle 40960 Feb 19 21:28 d20070219
drwxrwxr-x 2 settlec settle 49152 Feb 20 21:13 d20070220
drwxrwxr-x 2 settlec settle 49152 Feb 21 22:46 d20070221
drwxrwxr-x 2 settlec settle 49152 Feb 22 21:18 d20070222
I need the contents inside these directories. Example.... Inside the directories are zipped files referenced with 6 digit numbers like so...
cd /devt/prod/retrans/epix/d20070217
RPT_EP009188.Z RPT_EP472779.Z RPT_EP577433.Z RPT_EP809002.Z TRX_EP443690.Z TRX_EP588776.Z USER_EP583750.Z
What I need is a Perl program to pull all of the contents of the 6 digit number that I specify in this directory. So, if I say show me all the files that contain 009188. It will give a list of all the files that contain 009188 and the UNIX path.
cd /devt/prod/retrans/epix change to directory
contents of this directory has directories in it dyearmonthday...
drwxrwxr-x 2 settlec settle 40960 Feb 17 21:25 d20070217
drwxrwxr-x 2 settlec settle 40960 Feb 18 21:14 d20070218
drwxrwxr-x 2 settlec settle 40960 Feb 19 21:28 d20070219
drwxrwxr-x 2 settlec settle 49152 Feb 20 21:13 d20070220
drwxrwxr-x 2 settlec settle 49152 Feb 21 22:46 d20070221
drwxrwxr-x 2 settlec settle 49152 Feb 22 21:18 d20070222
I need the contents inside these directories. Example.... Inside the directories are zipped files referenced with 6 digit numbers like so...
cd /devt/prod/retrans/epix/d20070217
RPT_EP009188.Z RPT_EP472779.Z RPT_EP577433.Z RPT_EP809002.Z TRX_EP443690.Z TRX_EP588776.Z USER_EP583750.Z
What I need is a Perl program to pull all of the contents of the 6 digit number that I specify in this directory. So, if I say show me all the files that contain 009188. It will give a list of all the files that contain 009188 and the UNIX path.