Find the answer to your Linux question:
Results 1 to 2 of 2
Hello. I have some tutorials directories. In each directory are subdirectories with language codes (en, es, cz, ...). I want to copy directories with tutorials to my local hard drive ...
  1. #1
    Just Joined!
    Join Date
    Dec 2006
    Location
    Czech Republic
    Posts
    4
    Hello.
    I have some tutorials directories. In each directory are subdirectories with language codes (en, es, cz, ...). I want to copy directories with tutorials to my local hard drive but i want to each directory include just subdirectory with my language. How can I do it? I guess that 'find' helps but I haven't learned it yet.
    Thx

  2. #2
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    You can use 'cp -R' to copy a directory. So you could do something like:
    Code:
    mkdir new_tut_1
    cp -R tut_1/en/ new_tut_1/
    and so on.
    DISTRO=Arch
    Registered Linux User #388732

Posting Permissions

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