Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- [ "${LC_ALL:+set}" ] || export LC_ALL=en_US.ISO8859-1
- while [ $# -gt 0 ]; do
- FILE="$1" shift
- [ -f "$FILE" ] || continue
- [ "$FILE" != "${FILE%.gz}" ] || {
- echo "ERROR: $FILE does not end in \`.gz'" >&2
- exit 1
- }
- SIZE=$( stat -f%z "$FILE" )
- export FILE
- dpv -wmx 'zcat > "${FILE%.gz}"' "$SIZE${SIZE:+:}$FILE" "$FILE" || exit
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement