0
I hope to draw on the knowledge of those who know far more about scripting than I. I have two files, F1 and F2, where F2 is located in a sub-directory of F1. I need to output a new file, F3, that has the entire contents of F1, followed by the contents of F2 but excluding the first line of F2 (the contents obtained by doing 'tail +2 subdir/F2'). My attempts so far have been fruitless, so any help would be gratefully received.
Is there any reason not to use
cp F1 F3for the first step? – Paused until further notice. – 2012-01-18T15:38:36.320@DennisWilliamson I'm not sure what file attributes
cppreserves by default. But you're right,cp "F1" "F3"would also work. – Daniel Beck – 2012-01-18T15:40:30.827