I would like to write a script that searches for a pattern in a line.
The line will look something like this:
Index Filename CreationDateCreationTime Bytes Download
1 samename.001 Y
2 samename.002 N
I want to search the lines and where the Download header is if it has a N I want to download that file. But I am not sure how to get the search right as far as the numbers after the file name in otherwords .001 or .002 so on and so forth. I think but am not sure that I can do it like this:
am I on the right track or am I driving around in circles.
Thanks for any help
Jesse
The line will look something like this:
Index Filename CreationDateCreationTime Bytes Download
1 samename.001 Y
2 samename.002 N
I want to search the lines and where the Download header is if it has a N I want to download that file. But I am not sure how to get the search right as far as the numbers after the file name in otherwords .001 or .002 so on and so forth. I think but am not sure that I can do it like this:
Code:
if /samename\.\d(3) && N$/;
Thanks for any help
Jesse