Skip to content
  • It can also be wrapped in a bash or zsh alias so you can just run decode_qr:

    decode_qr() {
        docker run --rm \
            -v "$(pwd):/app" \
            -w /app \
            debian:bookworm-slim \
            sh -c '
                apt update >/dev/null 2>&1 && 
                apt install -y zbar-tools >/dev/null 2>&1 &&
                for file in *.svg; do 
                    echo "\n$file"
                    zbarimg --raw --nodbus -q "$file"
                done
            '
    }
    • add the function snippet above to your ~./zshrc or ~./bashrc
    • restart your terminal
    • then you can just cd to the directory containing QR code SVG files and run decode_qr
    Edited by Mhurd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment