Drsin has asked for the wisdom of the Perl Monks concerning the following question:
if the search pattern is found in TRC_20160309_1.ARC. grep -l 'TCO' *.ARC I want to move both TRC_20160309_1.ARC and TRC_20160309_1.PDF since the name is similar. I know perl can do this but am really lost. Thanks in advance.ls -ltr TRC_20160309_1.ARC TRC_20160309_1.PDF TRC_20160308_1.PDF
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl file processing
by Laurent_R (Canon) on Mar 10, 2016 at 22:04 UTC | |
|
Re: perl file processing
by FreeBeerReekingMonk (Deacon) on Mar 10, 2016 at 22:13 UTC | |
by GrandFather (Saint) on Mar 11, 2016 at 01:20 UTC | |
|
Re: perl file processing
by Marshall (Canon) on Mar 14, 2016 at 00:45 UTC |