Hi guys hope u r well and can help.
Pretty easy this one i hope.
I have a list of files in a directory in the following format:
menu3_career_resumes_examp
les.php
menu3_career_resumes_examp
les3.php
menu4_career_resumes_examp
les_images
kb.php
menu4_career_resumes_examp
les_docume
ntskb.php
menu4_career_resumes_examp
les_images
wk.php
menu5_career_resumes_examp
les_test.p
hp
I wanted to know how I can use the rm command to remove all the above files in one go without having to do 3 rm commands.
Is there a way to use rm with an or keyword or pipe it through grep?
Any help greatly appreciated.
Start Free Trial