Copie as 10 primeiras linhas de um arquivo para outro arquivo no Unix
sed -n '1,10p' filename > newfile
Brainy Booby
sed -n '1,10p' filename > newfile
head -n10 file.txt >> newfile.txt
echo "your line >> newfile.txt
tail -n +10 file.txt >> newfile.txt