#!/bin/bash linenumber=$(cat remoteIP.cfg |wc -l) currentline=0 for ip in $(cat remoteIP.cfg) do currentline=$[$currentline+1] echo "linenumber:$currentline value:$ip" done
#!/bin/bash linenumber=$(cat remoteIP.cfg |wc -l) currentline=0 for ip in $(cat remoteIP.cfg) do currentline=$[$currentline+1] echo "linenumber:$currentline value:$ip" done