Let's say i have a file(Input.txt
) with some following dig commands.
dig NS google.com
dig NS box.com
dig NS dropbox.com
dig NS cnn.com
dig NS bbc.co.uk
I want to execute the dig commands from the file only and which has to be read line by line.
Currently i tried using
for i in $(cat Input.txt);do $i;done
I'm not sure,how this can be executed and i get the following message as command not found.
Any suggestions please on resolving this issue ?