Find the answer to your Linux question:
Results 1 to 5 of 5
Hi there, i want to delete all files with upper case letters A, B, C, D and lower case letters from e-z, and end in .tga from a directory called ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    3

    rm shell commands


    Hi there,

    i want to delete all files with upper case letters A, B, C, D and lower case letters from e-z, and end in .tga from a directory called /dir1.

    What command would work?

    Thanks!

  2. #2
    Linux User
    Join Date
    Aug 2006
    Posts
    458
    show some examples of those files that you want deleted, and some that is ok not to delete.

  3. #3
    Just Joined!
    Join Date
    May 2009
    Posts
    3
    I would do that if i could...but this question is from a past exam paper....and i'm a complete newbie to linux.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Dec 2006
    Posts
    85
    hmm, im weary to give you an answer as, like you said it was an exam question...and i have no way of knowing if its a current exam...
    so i will give you a big hint (lik 80% of the answer)
    eh screw it i'll just tell you cus its too simple to just hint at:
    rm A*.tga., B*.tga, C*.tga, D*.tga, e*.tga,...etc
    simple command, should do just that. -_- now this better not have been a homework question...

  6. #5
    Just Joined!
    Join Date
    May 2009
    Posts
    3
    lol nah its definitely not homework...but thanks for help =]

Posting Permissions

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