copy only non-hidden files
Ralf Mardorf
silver.bullet at zoho.com
Tue Oct 24 03:12:46 UTC 2017
On Tue, 24 Oct 2017 05:10:43 +0200, Ralf Mardorf wrote:
>On Tue, 24 Oct 2017 05:06:23 +0200, Ralf Mardorf wrote:
>>On Tue, 24 Oct 2017 04:56:05 +0200, Ralf Mardorf wrote:
>>>On Mon, 2017-10-23 at 23:40 -0300, Duane Whitty wrote:
>>>> Wouldn't cp /home/duane/*/* /home/someone/ result in my .gnupg
>>>> directory being copied?
>>>
>>>I mentioned "globbing"
>>>
>>> http://lmgtfy.com/?q=shell+globbing
>>>
>>>What do you get, if you run
>>>
>>> ls -d /home/*/*
>>>
>>>or
>>>
>>> ls -d /home/*/*/*
>>>
>>>?
>>
>>
>>FWIW
>>
>>You probably did not mean cp /home/duane/*/* , but cp /home/duane/* ,
>>right?
>
>However, if you really meant cp /home/duane/*/* , since I mentioned
>levels of "asterisks", then remember that I also mentioned a sane
>hierarchical file system. Do you expect levels of hidden items in
>$HOME?
Either way, it wouldn't copy .gnupg !
More information about the ubuntu-users
mailing list