in reply to head/tail a log file for ingesting

G'day younggrasshopper13,

For the head part, follow the link already provided (perlintro). This will show you how to open a file; read as many head lines as you need.

For the tail part, this will depend on the size and structure of the file. Here's some options:

You mentioned "first field" and "first column". If that's referring to CSV, see your earlier post, "parsing CSV"; if it's something else, you'll need to be more specific.

— Ken