As you mentioned, TIMTOWTDI. I think I'd rather stick with doing more with bash since that's what most of the script is in. If you want a one-liner you could always separate the parts with a ; :-). Something like:
You probably already thought of this, but I figured I'd document it for posterity's sake.if grep -v -q 'the_line' ld.so.conf; then echo 'the_line' >> ld.so.con +f; fi
In Section
Seekers of Perl Wisdom