Re: A dream of cut -m

2024-06-29 Thread Eduardo M KALINOWSKI
On 29/06/2024 01:50, Kayven Riese wrote: If anyone has any advice on what I am missing to try to help improve GNU coreutils, I would greatly appreciate the advice. Before you start actively coding, I'd suggest you contact the upstream maintainers[0] and check whether they are interested in th

Re: A dream of cut -m

2024-06-29 Thread Alan M Varghese
Hi, As an FYI, I wanted to chime in with a more reliable way to achieve your desired results without using `awk`. You could "squeeze" the spaces in the output for `ls` to get a consistent result from `cut`: $ ls -l | tr -s ' ' | cut -f7 Of course, this may fall apart when you consider spaces

Re: A dream of cut -m

2024-06-28 Thread Geert Stappers
On Fri, Jun 28, 2024 at 09:50:29PM -0700, Kayven Riese wrote: > My friend pointed out strange behavior trying to do: > > $ ls -l | cut -d' ' -f7 > -d' ': delimiter is a **single** space character -f7: seventh field > > kayve@kayve-HP-Compaq-Elite-8300-CMT:~/src$ ls -l | cut -d' ' -f7 > > 408