0

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

3
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by cfajohnson
0

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
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.