Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含以下内容的文本文件:
1.1.1.1 2.2.2.2 3.3.3.3 4.4.4.4
如何提取每一行的内容并作为变量让firewall-cmd读写规则
firewall-cmd 具有标志--add-entries-from-file并--remove-entries-from-file从文本文件中读取。
--add-entries-from-file
--remove-entries-from-file
尝试一些谎言
firewall-cmd --permanent --ipset=xxx --add-entries-from-file=file.txt