fis(1) – field isolator #14

Open
opened 2023-12-26 16:00:18 +00:00 by trinity · 4 comments
Owner

What should the Bonsai equivalent look like? Ripped straight from POSIX? Or should there be improvements / simplifications?

What should the Bonsai equivalent look like? Ripped straight from POSIX? Or should there be improvements / simplifications?
Author
Owner

The POSIX man page for cut(1) looks complex but not terrible to implement as-is.

The [POSIX man page for cut(1)](https://www.man7.org/linux/man-pages/man1/cut.1p.html) looks complex but not terrible to implement as-is.
emma added the
enhancement
question
labels 2023-12-26 18:21:31 +00:00
Owner

we probably should not do these options for our cut-like:

-b list   Cut based on a list of bytes. Each selected byte shall be
                 output unless the -n option is also specified. It shall not
                 be an error to select bytes not present in the input line.

       -c list   Cut based on a list of characters. Each selected character
                 shall be output. It shall not be an error to select
                 characters not present in the input line.

these seem more suited to a matching tool or finding tool like a grep-like

we probably should not do these options for our cut-like: ``` -b list Cut based on a list of bytes. Each selected byte shall be output unless the -n option is also specified. It shall not be an error to select bytes not present in the input line. -c list Cut based on a list of characters. Each selected character shall be output. It shall not be an error to select characters not present in the input line. ``` these seem more suited to a matching tool or finding tool like a grep-like
Author
Owner

(-d delimiter) shouldn't be limited to one byte. cut -d " - " should be possible.

`(-d delimiter)` shouldn't be limited to one byte. `cut -d " - "` should be possible.
Author
Owner

Rather than cut(1p), perhaps it should be fis(1) - field isolator.

Rather than cut(1p), perhaps it should be fis(1) - field isolator.
emma changed title from cut(1) to `cut(1p)`-like 2024-01-23 22:02:33 +00:00
emma added the
help wanted
label 2024-02-08 03:25:31 +00:00
emma changed title from `cut(1p)`-like to `fis(1)` – field isolator 2024-02-20 00:03:26 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: bonsai/harakit#14
No description provided.