Python Forum
program wanted for Posix
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
program wanted for Posix
#1
maybe you know the "head" command. maybe you know the "tail" command. i'd like to see someone create a "headtail" command that outputs the head of a file followed by the tail of that same file. if the file is so small that these would overlap or duplicate, then it should just output the whole file. arguments should allow specifying how many lines for the head part and how many lines for the tail part. and, of course, it must be written in Python3.
Tradition is peer pressure from dead people

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


Messages In This Thread
program wanted for Posix - by Skaperen - May-11-2024, 11:54 PM
RE: program wanted for Posix - by Gribouillis - May-12-2024, 10:19 AM
RE: program wanted for Posix - by Gribouillis - May-13-2024, 08:32 AM
RE: program wanted for Posix - by snippsat - May-13-2024, 11:08 AM
RE: program wanted for Posix - by Skaperen - May-18-2024, 06:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  the posix "cut" command Skaperen 0 1,933 Oct-28-2018, 08:29 PM
Last Post: Skaperen
  program wanted in python Skaperen 2 2,795 Aug-07-2018, 12:05 AM
Last Post: Skaperen
  program wanted: diff that ignores numbers Skaperen 0 1,975 Jun-16-2018, 02:05 AM
Last Post: Skaperen
  program wanted: clean up pyc files Skaperen 6 5,860 Jun-13-2017, 05:42 PM
Last Post: snippsat
  anyone interested in a project of making python versions of various POSIX commands Skaperen 10 10,732 Oct-17-2016, 08:36 AM
Last Post: wavic

Forum Jump:

User Panel Messages

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