Python Forum
what name should i give ...
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
what name should i give ...
#1
what name should i give to a command that copies lines except for the last N lines?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
maybe...
truncate(n)
truncate_tail(n)
Reply
#3
truncated_write(n)
Reply
#4
i'd like a shorter one, maybe "trun"?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#5
I would make it at least trunc
Reply
#6
head | showing first N lines
tail | showing last N lines

trunc should be the best description.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply
#7
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.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020