|There's a problem I'm having trying to automate the process of grepping proxy files. Currently my string looks like this. |
set /P %%G=Please Enter Date to Grep e.g. "*mmdd*":
gzip.exe -v -c -d d:\logs\%%G.gz | perl ack.pl -i -h "phrase_to_grep" > "logs/%date%_filename.txt"
I'm trying to figure out a way to prompt the user for what files they want to search for based on date. As you can see I attempted to use %%G for my variable after it's set. Although, it doesn't recognize it because it's being used in the dir path.