Replies: 2 comments 3 replies
-
Something like |
Beta Was this translation helpful? Give feedback.
-
EDIT: see comment below on differences between this version and the original version by @tavianator. Hi, a small update on this. I figured a simpler way to execute commands with pipes Here is the reviewed command: fd -x sh -c 'ls "{}" | wc -l' The
P.S. fd -x sh -c "mediainfo --Output=JSON {} | jq '.media.track | .[] | select(.\"@type\" == \"Video\") | .Height'" |
Beta Was this translation helpful? Give feedback.
-
Hi! Thanks for the awesome utility, it is really a game changer.
I was wondering if I could do something along the lines of
Specifically, I would like to count the number of files in each directory in the current folder. I tried some alternatives:
This can be done with a for loop, but it would be good to avoid this:
Beta Was this translation helpful? Give feedback.
All reactions