Find the answer to your Linux question:
Results 1 to 3 of 3
i'm trying to remove a file that's in a lot of directories/sub-directories. It's created from visual sourcesafe. I've tried "rm -r vssver.scc" and I get "rm: cannont remove `vssver.scc`: No ...
  1. #1
    Just Joined!
    Join Date
    Nov 2005
    Posts
    15

    recursive remove help please

    i'm trying to remove a file that's in a lot of directories/sub-directories. It's created from visual sourcesafe. I've tried "rm -r vssver.scc" and I get "rm: cannont remove `vssver.scc`: No such file or directory".

    I've also tried "rm `find . vssver.scc`", but I get:
    find: vssver.scc: No such file or directory
    bash: /bin/rm: Argument list too long

    Can some please tell he how I can do a recursive remove?

    Thanks

  2. #2
    Just Joined!
    Join Date
    Nov 2005
    Location
    Midwest: USA
    Posts
    32
    If I am not mistaken unless given a path "find" will only search a given directory you are in. I would say that you open a terminal as root and do the following

    Code:
    updatedb
    which will update the file database and then do the following

    Code:
    locate vssver.scc
    which will search through the file database and look for all references to vssver.scc. This will give you a list of all locations that the file is in. If it is large, re-run the locate and pipe it into more or less.

  3. #3
    Just Joined!
    Join Date
    Nov 2005
    Posts
    15
    that didn't work but thanks...

    i found out that i was using find incorrectly.

    Thanks for your help though

Posting Permissions

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