Introduction
Introduction Statistics Contact Development Disclaimer Help
dir2memeblob - brcon2023-hackathons - Bitreichcon 2023 Hackathon Repository
git clone git://bitreich.org/brcon2023-hackathons git://enlrupgkhuxnvlhsf6lc3fz…
Log
Files
Refs
Tags
---
dir2memeblob (388B)
---
1 #!/bin/sh
2
3 if [ $# -lt 1 ];
4 then
5 printf "usage: %s file.meme\n" "$(basename "$0")" >&2
6 exit 1
7 fi
8
9 memefile="$1"
10 outname="${memefile%.*}"
11 outzip="${outname}.meme.blob.zip"
12 [ ! -e "${memefile}" ] && sh ./dir2meme >"${memefile}"
13 if [ "$(uname)" = OpenBSD ]
14 then
15 zipflag=-f
16 fi
17 zip $zipflag "${outzip}" $(awk 'NR>1 {printf "%s ", $2}' "${memefile}") …
18 printf "%s\n" "${outzip}"
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.