I need a fastest way to only find the filenames in the directory that has a particular pattern in perl.
for example, just like in unix command line, get me the filename under /root/ that has the pattern
Output isgrep -l Pattern /root/*.txt
foo.txt
In reply to Find filename that has the pattern in a directory by shawshankred
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |