Results 1 to 3 of 3

Thread: Command line help

  1. #1
    Join Date
    Mar 2009
    Location
    New Jersey
    Beans
    33
    Distro
    Ubuntu 12.04 Precise Pangolin

    Command line help

    I tried searching for this command to help me delete files in a folder with a certain character. I may not be using the correct terminology which is more than likely why I can't find what I'm looking for.

    I have a folder of 10000 images, 2 images are the same however one is named
    12345.gif and the second 12345SM.gif

    I want to delete all the images with SM in the name. I had no problems doing it with windows but I have since switched completely over to Ubuntu and I just need a little help.

  2. #2
    Join Date
    Aug 2009
    Location
    Scotland
    Beans
    20
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Command line help

    rm *SM* should do the trick

  3. #3
    Join Date
    Mar 2009
    Location
    New Jersey
    Beans
    33
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Command line help

    Perfect, thank you!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •