#!/usr/bin/env sh
######################################################################
# @author : swytch (swytch@$HOSTNAME)
# @file : bulk
# @license : GPLv3
# @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 6"
\ls | $EDITOR - -c ":%s/.*/$1 \"&\" $flags \"&\"/g"