in reply to Re^6: How do I use grep in a script
in thread How do I use grep in a script
from this code
for my $acct (keys %data){ my $outfile = $acct.'_2017.txt';
I need to add the last name (Name:LastName FirstName) which located on the same line in the $infile, but could also be in other places in the block of text being written to the $outfile. So now the $outfile name would look like this: LastName_1234_2017.txt.
Any suggestions on how and where I should define this new variable?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: How do I use grep in a script
by poj (Abbot) on Dec 27, 2017 at 15:05 UTC | |
by Flintlock (Novice) on Dec 27, 2017 at 17:34 UTC | |
by poj (Abbot) on Dec 27, 2017 at 17:37 UTC | |
by Flintlock (Novice) on Dec 27, 2017 at 17:49 UTC | |
by Flintlock (Novice) on Dec 27, 2017 at 18:12 UTC | |
|