Advertisement
yuch4n

datauri.sh

Apr 9th, 2015
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.11 KB | None | 0 0
  1. #!/bin/sh
  2. for FILE in $@; do
  3. echo "data:`file -i ${FILE}|awk '{print $2$3}'`;base64,`base64 -w0 ${FILE}`"
  4. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement