Re: print only first level directory name when copying files
Fourhundred Thecat via rsync <[email protected]> Fri, 4 Aug 2023 09:15:58 +0200
| Newsgroups | gmane.network.rsync.general |
|---|---|
| Message-ID | <[email protected]> |
> On 2023-08-04 06:13, Perry Hutchison wrote: > Perry Hutchison via rsync <[email protected]> wrote: > > On second thought, that grep will match any directory name having 3 > *or more* levels. This: > > rsync --info=name1,del2 -rl /mnt/foo /mnt/bar/ | egrep '^/[^/]*/[^/]*/[^/]*/$' > > should match only those with exactly 3 levels. I think that should work! thank you -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html