8 
 
        
      
      如何使用Shell脚本检查文件中是否存在IP地址?
      
  我有一个生成一些输出的脚本。我想检查任何IP地址的输出,例如 159.143.23.12 134.12.178.131 124.143.12.132 if (IPs are found in <file>) then // bunch of actions // else // bunch of actions // 是fgrep个好主意吗? 我有bash可用。
      
        
          
                   14
                
        
        
          
                  
                    shell-script 
                  
                    grep 
                  
                    ip