Hello and Thank You.
I ll print it out
and then I ll try it
and then I ll answer.
Thank You.
Also I ll study rsync.
Is GAdmintools
more easy to use?
Regards Sophie
Am 18.02.21 um 17:59 schrieb Jeremiah Bess:
> I see what you are trying to do. The cp command can't do that recursive
> looking for wildcard filename. You'll have to use rsync or find. Below is
> an example of what I ran on my system with test data. The find command
> looks recursively for the matching *.txt, then the -exec parameter
> specifies what to do with what it finds. The {} are replaced with
each file
> it finds, and the escaped \; at the end states it's the end of the
command
> to run.
>
> [image: image.png]
>
>
> Jeremiah Bess
>
>
> On Thu, Feb 18, 2021 at 9:27 AM highsky...@yahoo.de <highsky...@yahoo.de>
> wrote:
>
>> hello
>> I tried sth:
>>
>>
>>
>> cp -r checkold/*.txt checknew
>>
>> Before I put some files to
>> checkold.
>>
>> It did work.
>> cp -r checkold/*.txt checknew
>>
>> Then I created
>>
>> in a subdirectory
>> checkold/try/1.txt
>> checkold/try/2.txt
>> and so on.
>>
>> I did again:
>> cp -r checkold/*.txt checknew
>> and only the files from checkold
>> did walk to checknew.
>> But
>> the files in the subdir
>> checkold/try/
>> were not copied.
>>
>> What do I do wrong?
>>
>> Regards
>>
>> Sophie
>>
>>
>>
>> Am 13.02.21 um 18:02 schrieb Jeremiah Bess:
>>> No files matching a*.txt were found in your tun directory. a*.txt means
>>> anything matching that starts with an "a" and ends in ".txt". So it
would
>>> match a1.txt, apple.txt, abc.txt. Do an 'ls -l tun' and see what files
>> you
>>> have available.
>>>
>>> Jeremiah Bess
>>>
>>>
>>> On Sat, Feb 13, 2021 at 9:55 AM highsky...@yahoo.de
<highsky...@yahoo.de
>>>
>>> wrote:
>>>
>>>> $ ls
>>>> altundnurso backhp toburnab25319 tun
>>>> $ cp -r tun/a*.txt hpback132
>>>> cp: Aufruf von stat für 'tun/a*.txt' nicht möglich: Datei oder
>>>> Verzeichnis nicht gefunden
>>>>
>>>>
>>>>
>>>>
>>>> Hello
>>>> What do I do wrong?
>>>> Regards
>>>>
>>>> Sophie
>>>>
>>>>
>>>>
>>>>
>>>> Am 26.01.21 um 15:02 schrieb Jeremiah Bess:
>>>>> Not quite. Assuming you want to get all the a*.txt files recursively
>>>> inside
>>>>> the daten directory, this is the correct syntax:
>>>>>
>>>>> cp -r date/a*txt backup
>>>>>
>>>>> Jeremiah Bess
>>>>>
>>>>>
>>>>> On Tue, Jan 26, 2021 at 1:32 AM 'highsky...@yahoo.de' via Linux Users
>>>> Group
>>>>> <linuxusersgroup@googlegroups.com> wrote:
>>>>>
>>>>>> cp -r a*.txt daten backup
>>>>>>
>>>>>> hello
>>>>>> does this copy all files from hd to a new directory?
>>>>>>
>>>>>> regards
>>>>>> Sophie
>>>>>>
>>>>>> --
>>>>>> --
>>>>>> You received this message because you are subscribed to the Linux
>> Users
>>>>>> Group.
>>>>>> To post a message, send email to linuxusersgroup@googlegroups.com
>>>>>> To unsubscribe, send email to
>>>> linuxusersgroup+unsubscr...@googlegroups.com
>>>>>> For more options, visit our group at
>>>>>> http://groups.google.com/group/linuxusersgroup
>>>>>> References can be found at: http://goo.gl/anqri
>>>>>> Please remember to abide by our list rules (
>>>> http://tinyurl.com/LUG-Rules)
>>>>>> ---
>>>>>> You received this message because you are subscribed to the Google
>>>> Groups
>>>>>> "Linux Users Group" group.
>>>>>> To unsubscribe from this group and stop receiving emails from
it, send
>>>> an
>>>>>> email to linuxusersgroup+unsubscr...@googlegroups.com.
>>>>>> To view this discussion on the web visit
>>>>>>
>>>>
>>
https://groups.google.com/d/msgid/linuxusersgroup/d3455c3b-0b0d-b1e1-7c27-9c2feebbb37e%40yahoo.de
>>>>>> .
>>>>>>
>>>>
>>
>>
>
--
--
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to linuxusersgroup@googlegroups.com
To unsubscribe, send email to linuxusersgroup+unsubscr...@googlegroups.com
For more options, visit our group at
http://groups.google.com/group/linuxusersgroup
References can be found at: http://goo.gl/anqri
Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules)
---
You received this message because you are subscribed to the Google Groups "Linux Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to linuxusersgroup+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/linuxusersgroup/1f93862a-42ff-50b0-13f8-e62a34e849ae%40yahoo.de.