[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: batch modify user config files



On Wed, Jan 21, 2004 at 07:06:22PM -0600, Rick Weinbender wrote:
> In my setup each user has a configuration file
> in their home directory.
> *
> Is there a way to write a bash script to
> append a line of text to each user's
> config file in their home directory?

for x in /home/*; do echo 'This is the new line' >> $x/.configfile; done

-- 
Pigeon

Be kind to pigeons
Get my GPG key here: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x21C61F7F

Attachment: pgpHKCsZHcyvI.pgp
Description: PGP signature


Reply to: