#!/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

 

相关文章:

  • 2022-01-12
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2022-02-25
  • 2021-09-22
  • 2021-10-13
  • 2022-12-23
猜你喜欢
  • 2021-09-24
  • 2021-09-03
  • 2022-12-23
  • 2021-11-24
  • 2021-11-28
  • 2021-07-16
  • 2021-11-15
相关资源
相似解决方案