bug#20928: cut (v. 8.21), using -f option with a single column

2015-06-30 Thread Kuchta, Tomasz
Pádraig, Stephane - thanks a lot for your help and quick response! Tomek

bug#20928: cut (v. 8.21), using -f option with a single column

2015-06-29 Thread Stephane Chazelas
2015-06-29 17:25:11 +0100, Pádraig Brady: [...] > > $ printf '%s\n' a:b c d:e | paste -d: - /dev/null | cut -d: -f2 > > b > > > > e > > Good point. Or to better support field ranges: > > $ printf '%s\n' a:b c d:e | sed 's/^[^:]*$/&:/' | cut -d: -f2- > b > > e [...] Maybe better as: $ printf '

bug#20928: cut (v. 8.21), using -f option with a single column

2015-06-29 Thread Pádraig Brady
On 29/06/15 16:54, Stephane Chazelas wrote: > 2015-06-29 16:31:00 +0100, Pádraig Brady: > [...] >>> When there is only one column and we go beyond 1 with the -f option, the >>> output remains the first column >>> >>> $ echo "test1" | cut -d' ' -f1 >>> test1 >>> $ echo "test1" | cut -d' ' -f2 >>> t

bug#20928: cut (v. 8.21), using -f option with a single column

2015-06-29 Thread Stephane Chazelas
2015-06-29 16:31:00 +0100, Pádraig Brady: [...] > > When there is only one column and we go beyond 1 with the -f option, the > > output remains the first column > > > > $ echo "test1" | cut -d' ' -f1 > > test1 > > $ echo "test1" | cut -d' ' -f2 > > test1 > > $ echo "test1" | cut -d' ' -f3 > > tes

bug#20928: cut (v. 8.21), using -f option with a single column

2015-06-29 Thread Kuchta, Tomasz
Hi Pádraig, Oh, I see - thanks for letting me know. Kind regards, Tomek > On 29 Jun 2015, at 16:31, Pádraig Brady wrote: > > tag 20928 notabug > close 20928 > stop > > On 29/06/15 09:18, Kuchta, Tomasz wrote: >> Hello. >> >> I’m not sure if this is a bug - I just wanted to let you know. >> T

bug#20928: cut (v. 8.21), using -f option with a single column

2015-06-29 Thread Pádraig Brady
tag 20928 notabug close 20928 stop On 29/06/15 09:18, Kuchta, Tomasz wrote: > Hello. > > I’m not sure if this is a bug - I just wanted to let you know. > Thanks, > Tomek > > —— > > When there is more than one column and we go beyond the number of columns > with the -f option, the output is emp

bug#20928: cut (v. 8.21), using -f option with a single column

2015-06-29 Thread Kuchta, Tomasz
Hello. I’m not sure if this is a bug - I just wanted to let you know. Thanks, Tomek —— When there is more than one column and we go beyond the number of columns with the -f option, the output is empty $ echo "test1 test2" | cut -d' ' -f1 test1 $ echo "test1 test2" | cut -d' ' -f2 test2 $ echo