Python Forum

Full Version: what name should i give ...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
what name should i give to a command that copies lines except for the last N lines?
maybe...
truncate(n)
truncate_tail(n)
truncated_write(n)
i'd like a shorter one, maybe "trun"?
I would make it at least trunc
head | showing first N lines
tail | showing last N lines

trunc should be the best description.
i already have a command named trunc (which is a better version of the GNU truncate command).  and i like to make some kind of similarity of names for related thing ... head and tail are length 4.