Skip to content

Instantly share code, notes, and snippets.

@ihabunek
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ihabunek/ee2f2db4a3fd16e32029 to your computer and use it in GitHub Desktop.
Save ihabunek/ee2f2db4a3fd16e32029 to your computer and use it in GitHub Desktop.
Skripta za dekodiranje SGN datoteka s bankovnim izvodima (bez provjere potpisa)
#!/bin/bash
file=$1
if [ -f "$file" ]
then
xmllint --xpath "/FileUpload/File/text()" --nocdata $file | base64 -d | funzip
else
echo "File not found: $file"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment