in reply to Slicing the output of a command
Your experiment is a good one and your interpretation of the results is sound. So, if you only want the first few lines either use head instead of cat, or better yet just open the file within perl instead of shelling out and read a few lines that way.
|
|---|