#!/usr/bin/perl use strict; use warnings; open(SERIALS, "serials.txt") or die("can't open serials.txt"); my @serials = <SERIALS>; for my $serial (@serials) { chomp $serial; print "now processing $serial"; system("echo grep $serial logs* > $serial.log"); }
In reply to Re: System Call for various serials in a for loop
by lima1
in thread System Call for various serials in a for loop
by Elbarto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |