Phil Aylesworth wrote:
> I am sure this is a bug in cut (coreutils) 5.2.1.
Thank you for your bug report.
> When cut is used with the option "-f1" it will not output the results
> from more than one file given as arguments. Instead it outputs a blank
> line for each file beyond the first. cut works correctly with "-f" if
> 1 is not included, "-c", or piping to standard input.
I cannot recreate this behavior with cut from coreutils-5.2.1.
printf "1\t2\t3\n" > t1
printf "4\t5\t6\n" > t2
cut -f1 t1 t2
1
4
> I am running Fedora Core 2 Linux.
I am running Debian GNU/Linux. But I also tested the pristine latest
version and it worked fine as well.
Perhaps you could compile the latest stable released coreutils from
source? I am expecting that it will work fine.
ftp://ftp.gnu.org/gnu/coreutils/coreutils-5.2.1.tar.gz
Bob