Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I don't like big text configuration files. So, I would like to split my rc.xml file into multiple files:

rc.xml
rc.keyboard.xml
rc.mouse.xml
share|improve this question
up vote 2 down vote accepted

Why don't you just split it in the files you propose and then just cat them all together?

cat rc-something.xml rc.keyboard.xml rc.mouse.xml > rc.xml

The only problem is that you will need to cat them each time you modify one of the individual files, but that should be trivial..

share|improve this answer
    
Unfortunately, this is the only way yet :/ – kravemir May 28 '12 at 16:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.