3 ms·
When I write programs like this, I have my program write out shell commands for moving/deleting/renaming files to stdout. Then I review the changes and if I lik
by hughdbrown 2y ago
When I write programs like this, I have my program write out shell commands for moving/deleting/renaming files to stdout. Then I review the changes and if I like them, I pip to `sh` or `bash`. Assuming that the file renames are idempotent, this works out really well.