Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

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

This question already has an answer here:

The following script works to cat all files in a directory without header but prints the file name. How can I cat without file name.

tail -n +2 * >> Compile
share|improve this question

marked as duplicate by don_crissti, Kusalananda, sam, mdpc, heemayl 7 hours ago

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Alternative method:

for f in *; do tail -n +2 "$f" >> Compile; done
share|improve this answer

sed can be used to miss out lines:

sed -s 1d * >> Compile

this is assuming the folder only contains test files though; I just checked here and it didn't like directories at all, while tail coped.

You could use find then though if needed:

find . -maxdepth 1 -type f * | xargs sed -s 1d >> Compile

Added the -s Flag for separate. This deals with each file separately but is GNU only from the looks of things, unfortunately

share|improve this answer
    
Ah... one minute! – Guy 16 hours ago
    
Oh dear.. I may get there eventually.. cheers for the corrections! – Guy 16 hours ago

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