by LogicX · 7y ago · 0 comments
ls dataset-directory | egrep '\d\d\d\d_A.csv'
which FWIW wouldn't even work, on multiple levels: you need -1 on ls and no files end with A.csv vs
ls -1 dataset-directory/*_A?.csv
ref: http://man7.org/linux/man-pages/man7/glob.7.htmlUpdate: apologies, apparently my client cached an older version of this page. at that time the files were named A1.csv and A2.csv
I've never needed to use -1 when piping ls's output to another command.