#!/bin/bashfor I in "$@"do NEW_NAME="`echo -n "$I" | iconv -f cp1252 -t cp850 | iconv -f cp866`" [ "$I" == "$NEW_NAME" ] || mv "$I" "$NEW_NAME"done
#sha bangif [ $1 == "-l" ]thenunzip -l "$2" | iconv -f cp1252 -t cp850 | iconv -f cp866exitfiTMPDIR=$(mktemp)rm $TMPDIRmkdir $TMPDIRunzip "$1" -d "$TMPDIR"PD=$(pwd)cd "$TMPDIR"for I in *doNEW_NAME="`echo -n "$I" | iconv -f cp1252 -t cp850 | iconv -f cp866`"[ "$I" == "$NEW_NAME" ] || mv "$I" "$NEW_NAME"donelsmv * "$PD"cd -rmdir "$TMPDIR"