Tue 03 Jan 2006 07:12:47 PM UTC, original submission:
old file (test.old):
---------------------------------------
webpage = 'http://dcc.test.example.com'
some_flag = off # *SOME COMMENTS*
some_test_flag = off # Comment
some_test = on # *Comment*
new file (test.new): (exactly the same)
----------------------------------------
webpage = 'http://dcc.test.example.com'
some_flag = off # *SOME COMMENTS*
some_test_flag = off # Comment
some_test = on # *Comment*
command line used:
-------------------
ccp --oldfile test.old --newfile test.new --outputfile test.out --veryverbose
Result of "cat test.out":
--------------------------
webpage = 'http
some_flag = off
some_test_flag = off
some_test = on
Final Words: :-)
----------------
as you can see.... anything after the ":" char got removed "accidently"
comments get striped as well
I really like your idea of ccp !! thanks for the good work so far... as ccp can really save a lot of time, while upgrading config files !!
Cheers
Marcel
|