16 lines
484 B
Plaintext
16 lines
484 B
Plaintext
|
#!/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"
|