Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

ITT BASH

Name: Anonymous 2008-03-07 19:33


#!/bin/sh

jpg="$1"
shift

file=$(mktemp)

rar a "$jpg.rar" "$@"
cat "$jpg" "$jpg.rar" > "$file"
mv "$file" "$jpg"
rm "$jpg.rar"

Name: Anonymous 2008-03-07 22:12

>>1
Doesn't work on the image boards anymore. Try lhz, though even though WinRAR handles jpg + lhz just fine, the Unix version of lha won't. I keep wanting to make a patch to lha to keep searching the file for lhz headers instead of giving up if the header doesn't start at the first byte, but it's not like anyone other than me uses jpg + lhz on 4chon.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List