Hi

Before you read any further, this is for joining hjsplit files on mac os x only, and you need to run it from the terminal.

Not sure if this is any use to anyone, but I used to use hjsplit and click on each file one by one, but bored one night i wrote a script to run round my download folder, get all hjsplit files, join them and delete the hjsplit files.

YYMV, and obviously if it deletes your hard drive, sets fire to your house, or kills your dog, i take no responsibility...

Copy this into a file in your download folder (e.g. catall.sh), make it executable (chmod 777 catall.sh), then after a night of downloading, just run ./catall.sh and it will take care of all your files.

There's probably a much neater and more sophisticated way of doing this, but this works for me. :-)

HTH.

catall.sh - don't copy this line :-)


shopt -s nullglob
for f1 in *.0??
do
new=`echo "$f1" | sed 's/ /_/g'`
mv "$f1" "$new"
done
for f in *.001
do
name=${f%\.*}
cat ${name}* > tmpfile
mv tmpfile "$name"
rm ${name}.0??
echo "$name hjsplit files concatenated and deleted"
echo " "
done