Hey, i have a file listing a number of ip addresses and i would like each of these to be run thru the nmblookup command and the output to be directed to another file. I know its possible as i watched my lectureur do it about a month ago but can't recall how to do it myself.
Your post is not concrete enough, so I cannot answer it in detail. But for the processing of content of file, this simple script should do it.
(modify it according to your needs and paste to console)
while read IP; do
nmblookup your parameters $IP >> output_of_nmblookup.txt
done < your input file
That done the trick thank you Xman :)