How can I get a list of certain files read into an array.
I have several files that are structured like this:
12345_lrg.jpg
12445_sml.jpg
14445_sml.jpg
12345_lrg.jpg
42345_lrg.jpg
I need to only get the “_sml.jpg” returned into a array.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If this is for perl code, as your tags imply, then you would typically use
grep: