Jun 4, 2002 #1 preethib Programmer Jul 20, 2000 39 IN Hi, Is there a single system/awk/sed command, if I want to append a file to a list of exzisting configuration files. I have 10 lines in a 1 text file, that I want to append to the contents of 10 existing files. Any help would be great. Thanks,
Hi, Is there a single system/awk/sed command, if I want to append a file to a list of exzisting configuration files. I have 10 lines in a 1 text file, that I want to append to the contents of 10 existing files. Any help would be great. Thanks,
Jun 4, 2002 #2 olded Programmer Oct 27, 1998 1,065 US Hi: The append operator >> will do what you want: Given: config1.file # configuration file atext.file # file to append cat atext.file >> config1.file You can write yourself a small script like this for i in config1.file config2.file # ... up to howmany files do cat atext.file >> $i done Regards, Ed Upvote 0 Downvote
Hi: The append operator >> will do what you want: Given: config1.file # configuration file atext.file # file to append cat atext.file >> config1.file You can write yourself a small script like this for i in config1.file config2.file # ... up to howmany files do cat atext.file >> $i done Regards, Ed
Jun 7, 2002 Thread starter #3 preethib Programmer Jul 20, 2000 39 IN Thanks a lot, preethi Upvote 0 Downvote