This seems like a homework problem, but I'll give you a clue anyway.
The error message "cut: Cannot open line1." implies that the program cut
is trying to open a file called line1
, which I don't believe is what you want.
If you do this at the command line:
you'll see why cut
is trying to open file line1
, you have on occasion posted scripts here. They will be more readable (more accurately) if you click on the [B]Go Advanced[B] button at the bottom of the editing window, enter your question (including the script), highlight the script by dragging your mouse, and then clicking on the #
button at the top of the editing window.