I have a Unix batch script that copies the contents of one directory (call it dir A) to another (call it dir B).
Here is the copy statement I have currently.
cp -urL /path/to/dir/A /path/to/dir/B
However, this statement copies over hidden files.
How can I exclude any and all hidden files from being copied over?
Put star (*) in to copy but ignore hidden files
cp -urL -r /path/to/dir/A/* /path/to/dir/B
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With