diff options
-rwxr-xr-x | tmp.py | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -66,7 +66,9 @@ URLS['tmp']=URLS_tmp[@] CMDNAME="$(echo "$(basename $0)"|sed 's/./\L&/g')" declare -A config -for elem in "${!URLS[$CMDNAME]}" +echo ${@:1} + +for elem in ${URLS[$CMDNAME]} do # echo "key : ${elem}" -- "value: ${config[${elem}]}" config[${elem}]=${URLS[$CMDNAME][${elem}]} @@ -75,12 +77,13 @@ done echo ${config[@]} echo ${!config[@]} - exit 0 [ $# -lt 1 ] && exit 1 -for processed_file in sys.argv[1:] ; do + + +for processed_file in ${@:1} sys.argv[1:] ; do st=os.stat(processed_file).st_size file_ext=os.path.splitext(processed_file)[1] debug "size of $processed_file is ${st}" |