head -n 3 filename tail -n 30 filename [download]
In reply to Re: Print First 3, last 30 lines of input by jwkrahn in thread Print First 3, last 30 lines of input by Saved