saras
03-23-2001, 11:14 PM
Anyone know how to pipe an ls -a thru a chown. I basically want to chown on all files in a dir with sub dirs.
|
Click to See Complete Forum and Search --> : bash pipe and chown saras 03-23-2001, 11:14 PM Anyone know how to pipe an ls -a thru a chown. I basically want to chown on all files in a dir with sub dirs. Energon 03-23-2001, 11:23 PM chown owner.group * and to hit all files in subdirectories: chown -R owner.group * just directories: chown owner.group */ no need to pipe anything... just read the man page... saras 03-24-2001, 04:59 PM Thanks Energon. I thought I could do something like that but I could get the syntax right. I finally used a variation of what you gave me for the hidden files. If you have anytime, check out a post I put in the Window manager list (I'm still in a mess with this problem). jemfinch 03-24-2001, 06:21 PM man xargs. Jeremy Energon 03-24-2001, 08:31 PM well, for hidden files you can do: chown -R user.group .* that'll hit all the hidden files... :) justlinux.com
Copyright Internet.com Inc. All Rights Reserved. |