Results 1 to 3 of 3

Thread: how to copy folder leaving out hidden files

  1. #1
    Join Date
    Jun 2005
    Location
    Knaresborough, UK
    Beans
    213

    how to copy folder leaving out hidden files

    Title just about says it.

    Input folder has test.txt .test1.tx and many other files with various names.

    How can I copy all the unhidden files to a new folder.

  2. #2
    Join Date
    Apr 2010
    Location
    Switzerland
    Beans
    307
    Distro
    Ubuntu

    Re: how to copy folder leaving out hidden files

    Why don't you try
    Code:
    cp -ripv /source/folder/* /target/folder

  3. #3
    Join Date
    Jun 2005
    Location
    Knaresborough, UK
    Beans
    213

    Re: how to copy folder leaving out hidden files

    Thank you that worked fine.

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
  •