Closed sayanarijit closed 3 years ago
Hi, nice tool. I have migrated the bach rename xplr hack from mmv to pipe-rename because it supports reading filenames from stdin.
pipe-rename
This solves the following problems:
cat $XPLR_PIPE_RESULT_OUT | renamer
Really neat thinking :+1:
Also, I like the custom rename command argument. That gave me this project idea of a more generic tool, let's call it batch.
batch
So when I execute ls | batch 'mv {} {}', editor will open
ls | batch 'mv {} {}'
mv "a" "a" mv "b" "b"
or rm -rf {}
rm -rf {}
rm -rf "a" rm -rf "b"
Basically xargs but lets you edit and review the operation before executing, with a nice confirmation prompt.
xargs
Sweet! Happy to hear this was useful for you :D
Love the batch idea, cool that it would be a two-for-one, in that it's doing a dry-run and fixing any issues, in one go.
Hi, nice tool. I have migrated the bach rename xplr hack from mmv to
pipe-rename
because it supports reading filenames from stdin.This solves the following problems:
cat $XPLR_PIPE_RESULT_OUT | renamer
.Really neat thinking :+1:
Also, I like the custom rename command argument. That gave me this project idea of a more generic tool, let's call it
batch
.So when I execute
ls | batch 'mv {} {}'
, editor will openor
rm -rf {}
Basically
xargs
but lets you edit and review the operation before executing, with a nice confirmation prompt.