News for hackers. Stuff that matters.
Re:Cheating at a company group activity using Unix tools by darrenf on Monday December 13, 2021 @05:28AM (#29538363)
Almost, but not quite :)

    $ ls | grep '.csv$' | xargs cat | grep 'cake' | cut -d, -f2,3
    cake
    cake
    cake
    $ grep cake *.csv | cut -d, -f2,3
    bar.csv:cake
    foo.csv:cake
    quux.csv:cake
`grep -h` will do the trick though
Re:Cheating at a company group activity using Unix tools by darrenf on Monday December 13, 2021 @12:11PM (#29541623)
I'm surprised, hours later, that no-one has pointed out my error here! So I'll do it myself - upon revisiting it, I realised my input files weren't CSVs with the number of fields required for `cut` to do the intended thing. Had I made them so, the `-h` isn't required after all. My bad :)