Results 1 to 2 of 2

Thread: Unable to delete files that are supposedly not existing

  1. #1
    Join Date
    Aug 2012
    Beans
    1

    Exclamation Unable to delete files that are supposedly not existing

    I have an OSX Mountain Lion Laptop connected to and ubuntu 11.10 system in my local network and tried to copy one rather large .csv file from the OSX machine to the ubuntu machine. I stopped the file transfer as I realised it created several empty files in the target folder.

    I now have a few hundred files sitting there which I can not delete using:

    Code:
     sudo find . -name "*.csv" | xargs /bin/rm
    It is saying file does not exist....



    Any ideas on that?

    All these files sitting there make the system incredible slow

  2. #2
    Join Date
    Jul 2007
    Location
    Poland
    Beans
    4,333
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Unable to delete files that are supposedly not existing

    how about this:
    Code:
    sudo find . -name "*.csv" -delete
    if your question is answered, mark the thread as [SOLVED]. Thx.
    To post code or command output, use [code] tags.
    Check your bash script here // BashFAQ // BashPitfalls

Tags for this Thread

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
  •