Hi Guys, How are you?
uh, i have the follow script written for bash: #!/bin/sh for i in $( cat $1 ); do nslookup $i >> nslookup_log.txt done 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, Geraldo ------------------------------------------------------------------------- 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. http://sourceforge.net/powerbar/db2/ _______________________________________________ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user