[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

OT: merge two files



I want to merge the contents of one file with the bottom X lines of another. This works:

cat file1 > EndResultFile && tail +20 file2 >> EndResultFile

Is this adequate, or is there a better way to do it?

(Sorry I'm asking a programming question on Debian-User, but you folks are sharp, and I get confused with such things as piping and redirection, etc.)

Thanks!

--
Kent





Reply to: