Python Forum
what name should i give ... - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: what name should i give ... (/thread-5896.html)



what name should i give ... - Skaperen - Oct-27-2017

what name should i give to a command that copies lines except for the last N lines?


RE: what name should i give ... - buran - Oct-27-2017

maybe...
truncate(n)
truncate_tail(n)


RE: what name should i give ... - Larz60+ - Oct-27-2017

truncated_write(n)


RE: what name should i give ... - Skaperen - Oct-28-2017

i'd like a shorter one, maybe "trun"?


RE: what name should i give ... - buran - Oct-28-2017

I would make it at least trunc


RE: what name should i give ... - DeaD_EyE - Oct-28-2017

head | showing first N lines
tail | showing last N lines

trunc should be the best description.


RE: what name should i give ... - Skaperen - Oct-29-2017

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.