I am trying to modify a script so that it will truncate the output that goes to another file to a maximum (for example: 1000 lines).
I have read about split, but what I understand is that split by default does 1000 by default and splits that file into smaller files.
But, there may be a time when the output isn't going to be 1000 lines. It may only be 100.
I just want to cap the output at no more than X amount.
Aucun commentaire:
Enregistrer un commentaire