* This one time, at band camp, Bernhard L?der said:
> Hi,
>
> I am just after a hint.
>
> I have to copy a file to all user directories.
>
> cp file.file /home/*
>
> will only copy file.file to the first user not all users. How would I do
> this without listing the individual directories
>
try this (should work in bash - you didn't state which shell you were
using)
for I in /home/*
do
cp file.file $I
done
Indentation is optional - just helps readability
HTH
Greeno
--
Greeno <[EMAIL PROTECTED]>
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug