[kwlug-disc] chown .* without traversing directories?

Doug Moen doug at moens.org
Fri Dec 9 04:11:27 EST 2022


I would use the glob pattern .??* which excludes one and two character file names such as "." and "..".

On Fri, Dec 9, 2022, at 4:04 AM, Ronald Barnes wrote:
> Hey,
>
> I'm trying to chown some "dot" files but I do not want to traverse UP 
> the directory tree, but I do want to recursively traverse subdirectories.
>
>
> If I run:
>
> chown -vR www-data: ./.*
>
>
> It goes up (towards / aka root), but I don't want that.
>
>
> What am I overlooking here?  Seems I'm overlooking something very obvious.
>
>
>
> Thanks,
>
> rb
>
> _______________________________________________
> kwlug-disc mailing list
> To unsubscribe, send an email to kwlug-disc-leave at kwlug.org
> with the subject "unsubscribe", or email
> kwlug-disc-owner at kwlug.org to contact a human being.




More information about the kwlug-disc mailing list