I need a script (may it be bash, ksh, or whatever) which copies, for backup purposes, all the sub-directories and files of a directory: .znc - but .log files.
The structure is like this:
Note that this is only part of the structure, but this is the part I am having trouble with.
I need to copy all the content of .znc/ but files which extension is "log".
I haven't been able to do much with
grep, because there is a variable, username.