Python Forum
a new kind of cut command
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
a new kind of cut command
#1
i have run across the need many times to cut an input file that has a mix of delimiters (or is layered) or i need to columns in a different order, or often both. i have ideas on how to to express the desires and how to parse that expression. the need arose as a need for a command by my thought is to code it as a generator and use that generator in a simpler command.

any suggestions as to other needs that might fit into this? the generator would take a string and yield either a string or a list. i think it might be good to "compile" the expression into a sequence of actions such as function calls for reasonably faster performance.
Tradition is peer pressure from dead people

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


Possibly Related Threads…
Thread Author Replies Views Last Post
  i would like this kind of logic Skaperen 0 668 Oct-25-2022, 03:27 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

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