solo2500
Posts: 123
Joined: Sat Jul 09, 2016 12:38 am

error trying to remove multiple files?

Thu Jan 04, 2018 7:13 pm

I'm trying to remove multiple image files in a folder using the following code:

Code: Select all

rm /home/pi/WeatherCam/Test1/*.jpeg


Why doesn't it work?

Thanks for any insight!
I'm a total novice, non-programer (...basically a hack.)

User avatar
lmarmisa
Posts: 1265
Joined: Thu Feb 14, 2013 2:22 am
Location: Jávea, Spain

Re: error trying to remove multiple files?

Thu Jan 04, 2018 7:46 pm

This command may help you diagnose the problem:

Code: Select all

ls -l /home/pi/WeatherCam/Test1/*.jpeg

rhubarbdog
Posts: 64
Joined: Mon Dec 11, 2017 9:58 pm

Re: error trying to remove multiple files?

Fri Jan 05, 2018 9:26 am

When you say doesn't work can you elaborate posting the output of the rm command

Return to “Beginners”