Is there a good way to run cp on the shell (MinGW, in my case) to copy only non-hidden files (i.e. files whose names do not begin with .)?
I’d like to exclude my .svn folders and their contents.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The shell doesn’t expand
*to include names starting with a dot, so:That won’t copy the
.svndirectory.If that isn’t your issue (e.g. you are trying to do a recursive copy with sub-directories that contain hidden files), please clarify what you are up to.