3 ms·
This suggestion is exactly why fd is so helpful. With zmv I can rename files in a directory. Great. But what if I want to count the number of total files withi
by dickeytk 7y ago
This suggestion is exactly why fd is so helpful. With zmv I can rename files in a directory. Great.
But what if I want to count the number of total files within each directory? Create tarballs out of each directory? Rename files that contain the word "FOOBAR" in them?
I can do this with fd and similar tools with slight modifications. With zmv I can rename files.
- jdc 7y agoHow do you rename files based on contents with fd?
- dickeytk 7y agoI would use rg. My original point is not that fd is a do anything tool, it’s that fd and others are a much better replacements for find, grep, etc that when I want to do something complex they’re much better starting places.
- nebulous1 7y agoCool! zsh also does a few things other than renaming files.