Hi Guys,

How are you?

uh, i have the follow script written for bash:

for i in $( cat $1 ); do
        nslookup  $i >> nslookup_log.txt

it catches the content of a file passed($1) and does nslookup for each
entry of the file

and i would like to know how to rewrite it for command, by now i have this:
@echo off
for %%p in ( entries separated by spaces ) do nslookup %%p >> nslookup_log.txt

any idea on how to pass a file as argument?

Thank you very much,


This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
Freedos-user mailing list

Reply via email to