This repository has been archived on 2023-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/.local/bin/bulk

16 lines
484 B
Plaintext
Raw Normal View History

2021-02-12 23:23:40 +01:00
#!/usr/bin/env sh
######################################################################
# @author : swytch (swytch@$HOSTNAME)
# @file : bulk
# @license : MIT
# @created : Wednesday Feb 10, 2021 00:27:55 CET
#
# @description : execute batch commands through your favorite $EDITOR
######################################################################
[ $1 = "" ] && 1="mv -i"
[ $1 = "sox" ] && flags="-C 320"
\ls | $EDITOR - -c ":%s/.*/$1 \"&\" $flags \"&\"/g"