open(LIST,$list); open(VULNFILE, ">>output.txt"); while ($d = <LIST>) { chomp ($d); if($d =~ /OK/) { print VULNFILE "OK\n"; } } close(LIST); close(VULNFILE);
In reply to Print in TXT (while loop) by marto9
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |