[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:
> 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?

You should be very careful as what type of file it is, as this might:
(1) not get executed/parsed
	-- easy: exec/exit statement, if-clause spanning whole the file,
	    etc.
(2) break the syntax
	-- maybe, I cannot come up an example
(3) the file might not exist, and maybe some (fixed) header should be
prepended then?

HTH

-- 
Jan Minar                   "Please don't CC me, I'm subscribed." x 9

Attachment: pgpokIAbXHMA5.pgp
Description: PGP signature


Reply to: