new feat to markslider: autoexec

This commit is contained in:
ville rantanen
2015-01-22 12:08:10 +02:00
parent 7d9fe6ba39
commit 0afebdd778
2 changed files with 14 additions and 5 deletions

14
mvregex
View File

@@ -1,11 +1,15 @@
#!/bin/bash
function helpexit() {
echo rename files in current folder replacing arg1 with arg2.
echo '-n for match non ascii, replace with arg2'
exit
}
IFS=$'\n'
if [ -z "$1" ]
then echo rename files in current folder replacing arg1 with arg2.
echo '-n for match non ascii, replace with arg2'
exit
fi
[[ -z "$1" ]] && helpexit
[[ "$1" = "-h" ]] && helpexit
POSTPROC="sed 's, , -> ,'"
which ncsv &>/dev/null && POSTPROC="ncsv -c"
c=0