Hi,

I am trying to delete all files that end in .csv within a directory.

I'm not sure how to go about this,

I am using bash and the command I used was;

rm '/home/eeng/ME_project/Big_Users/*.csv'

New to this scripting so not too sure where i'm going wrong.

Any ideas?

Thanks.

N

Got this sorted!

you can cd into the directory and then use

rm -rf *csv

you can cd into the directory and then use

rm -rf *csv

There is no need to cd into the directory; just leave off the quotes:

rm /home/eeng/ME_project/Big_Users/*.csv