/var/tmp I have the following files:
ls | grep FILE AAA-FILE.xml BBB-FILE.xml
With the following command I cut the first word of the files as follows:
ls /var/tmp | grep FILE.xml | sed "s/.FILE.*//"
How can I do the same thing with Perl in order to insert the "AAA" and "BBB" in to @RESULTS? For example:
@RESULTS=perl syntax ...