Bulk deleting of files with bash/shell

Discussion in 'Shell Script' started by niall_heavey, Aug 28, 2010.

  1. niall_heavey

    niall_heavey New Member

    Joined:
    Aug 28, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    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
     
  2. Prakhar14

    Prakhar14 New Member

    Joined:
    Apr 27, 2011
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    I think this command should work.
    rm ~/ME_project/Big_Users/*.csv
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice