fis(1) – field isolator #14

Open
opened 2023-12-26 09:00:18 -07: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 11:21:31 -07: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 15:02:33 -07:00
emma added the
help wanted
label 2024-02-07 20:25:31 -07:00
emma changed title from `cut(1p)`-like to `fis(1)` – field isolator 2024-02-19 17:03:26 -07: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.