Re: [SLE] Copying files

From: Albert (albert_at_fastworx.com)
Date: 09/01/05

  • Next message: Audrius: "[SLE] SuSE Standard 8.0"
    To: <suse-linux-e@suse.com>
    Date: Thu, 1 Sep 2005 09:24:02 +0200
    
    

    Who would have thought that something as simple as copying a number of files
    would have created so much discussion? Thanks for that - I now understand a
    bit more of why it failed. One thing that will definitely be changed is to
    put it in various subdirectories to make it easier to copy in the future.

    The good news is that we managed to get the files copied using mc on a 64
    bit machine - took 36 hours though. It was definitely faster on a 64 bit
    machine (Dual Xeon 3.4GHz, 2GB RAM) than on a 32 bit machine (P4 2.4GHz,
    512MB RAM).

    I should have the disk back with me within the next week or so. Currently it
    is in the UK where they needed the images (graphic files) for a
    presentation. Unfortunately they have already prepared the drive for
    shipping before I could stop them to test some of your suggestions. I will
    try and see if I can get them to put it back into the machine.

    We can access a file if we know what the file name is. It is therefore
    possible to manipulate (rm/cp/ls) any single file and possibly a number of
    files. Each image is 125x125 pixels named according to a numeric value
    indicating a number on a grid which in turn represents the world. These
    images contain some demographic information compiled from various sources
    within our company.

    During development we ran into a problem where the graphics was created
    incorrectly. We then tried to delete the files but couldn’t. At the end
    we've found that mc can delete them - given enough time.

    I could possibly use the following to copy the files in to a more manageable
    directory structure:

    On Wednesday 31 August 2005 at about 17:46, Jerry Feldman wrote:
    > Assume that the source directory is mounted as /usr/localfoo and the
    > target directory is mounted on /mnt:
    > cd /usr/local/foo
    > find . -type f -exec cp -p {} /mnt \;
    > This is assuming that /usr/local/foo does not have subdirectories.
    > You can set appropriate flags in find to prevent recursion.
    > Another possibility is to partition the output into a number of
    > subdirectories:
    > Assume that you may have directories: /mnt/a, /mnt/b, ...
    > find . -name \[aA\]* -exec cp -p {} /mnt/a \;

    I will also try ls -U (to get an unsorted directory listing as suggested by
    Jim Cunning).

    Thanks again for all the suggestions. The response was fantastic.

    Albert

    -- 
    No virus found in this outgoing message.
    Checked by AVG Anti-Virus.
    Version: 7.0.344 / Virus Database: 267.10.18/86 - Release Date: 31/08/2005
     
    -- 
    Check the headers for your unsubscription address
    For additional commands send e-mail to suse-linux-e-help@suse.com
    Also check the archives at http://lists.suse.com
    Please read the FAQs: suse-linux-e-faq@suse.com
    

  • Next message: Audrius: "[SLE] SuSE Standard 8.0"

    Relevant Pages

    • Re: photo download from internet
      ... > I have recently replaced windows 98se on my computer to ... When I download photos from the web, ... Occur When You Try to View Graphic Files ... Internet Explorer Saves Images As ...
      (microsoft.public.windowsxp.photos)
    • Re: Photo opening in wrong program
      ... Hey john, thanks for you help. ... like the icon and its not like it was. ... >Internet Explorer Saves Images As ... >Occur When You Try to View Graphic Files ...
      (microsoft.public.windowsxp.photos)
    • Re: Image formats stuck on .bmp only - and I dont like it!
      ... Internet Explorer Saves Images As ... Occur When You Try to View Graphic Files ... Picture It! ... Digital Image Support Center ...
      (microsoft.public.windowsxp.photos)
    • Re: Do Any Image Viewers Besides Firehand Ember Support Directory Preivew
      ... directory with folder images showing subdirectories and one or more images from each subdirectory. ... For example if you keep multiple pictures of bridges, ... then Irfanview 'thumbnail view' will do just ...
      (rec.photo.digital)
    • Re: getting photos from the internet
      ... > i cannot figure out why i cant save photos from any ... "Music, Video, and Photos" ... Occur When You Try to View Graphic Files ... Internet Explorer Saves Images As ...
      (microsoft.public.windowsxp.photos)