When fd shows no files [til/cli]

1 · Remy Sharp · May 21, 2021, 11:48 a.m.
I'm a big fan of fd and use it as a part of my dev workflow as it's way easier than find. I've used it to convert files on the fly for ingest, specifically converting xlsx to csv en mass. This is the command I was running: $ fd . -e xlsx -x sh -c "in2csv '{}' > '{.}'.csv" This finds all the files that end with xlsx (using -e) and executes (-x) a shell command that passes the full filename {} to in2csv (part of the csvkit tools) and outputs to the basename {.} with .csv appended. Except I found ...