如一个有如下规律的文本,通过linux脚本找出缺失的id,并保存到一个文件里.
id_0021
id_0023
id_0024
id_0026
id_0027
以上缺少id_0022 和id_0025
这两个值保存到1.txt中,应该怎么写?
感谢朋友热心回复!
如果是如下例子,应该怎么列出空ip?
Nmap scan report for 192.168.0.1
Host is up (0.00017s latency).
MAC Address: A0:42:3F:32:90:00 (Tyan Computer)
Nmap scan report for 192.168.0.5
Host is up (0.00017s latency).
MAC Address: A0:42:3F:32:90:00 (Tyan Computer)
Nmap scan report for 192.168.0.6
Host is up (0.00017s latency).
MAC Address: A0:42:3F:32:90:00 (Tyan Computer)
Nmap scan report for 192.168.0.7
Host is up (0.00017s latency).
MAC Address: A0:42:3F:32:90:00 (Tyan Computer)
Nmap scan report for 192.168.0.8
Host is up (0.00017s latency).
MAC Address: A0:42:3F:32:90:00 (Tyan Computer)
Nmap scan report for 192.168.0.15
Host is up (0.00017s latency).
MAC Address: A0:42:3F:32:90:00 (Tyan Computer)
Nmap scan report for 192.168.0.16
Host is up (0.00017s latency).
MAC Address: A0:42:3F:32:90:00 (Tyan Computer)
Nmap scan report for 192.168.0.254
Host is up (0.00017s latency).
MAC Address: A0:42:3F:32:90:00 (Tyan Computer)