Saf File Extractor!!!

Post about creating and skinning models here
Post Reply
Matt B
Posts: 12
Joined: Tue Apr 14, 2020 1:48 pm
Team: Daylight cycles

Saf File Extractor!!!

Post by Matt B »

If anyone has the file extractor shortcut ill pay up to 10 bucks! greatly appreciated.
PM me plz
Bower946
Posts: 209
Joined: Fri Jul 03, 2015 12:46 am
Team: IG: @Moto.Fails
Contact:

Re: Saf File Extractor!!!

Post by Bower946 »

Image
Image
DBRider251
Posts: 1931
Joined: Fri Jun 21, 2013 5:38 pm
Team: Elevated Motorsports

Re: Saf File Extractor!!!

Post by DBRider251 »

jlv wrote: Mon Oct 07, 2013 9:56 pm Here you go:

Code: Select all

#!/bin/bash
#
# Simple Archive Format
#


#set -C

if test "_$1_" = _c_
then
	shift
	find "$@" -maxdepth 0 -printf '%s %p\n'
	echo -
	cat "$@"
elif test "_$1_" = _x_
then
	shift
	count=0

	while read size name && test "_${size##[^0-9]}_" = "_${size}_"
	do
		sizes[count]=$((size))
		names[count]=${name}
		count=$((count+1))
	done

	if test "_${size}_" != "_-_"
	then
		echo "Bad dir"
		exit
	fi

	i=0
	while let 'i<count'
	do
		echo ${names[i]} ${sizes[i]}
		if test "_${names[i]##*/}_" != "_${names[i]}_"
		then
			install -d "${names[i]%/*}"
		fi
		dd bs=${sizes[i]} count=1 >"${names[i]}" 2>/dev/null
		i=$((i+1))
	done

else
	echo "To create an archive use: saf.sf c files..."
	echo "To extract an archive use: saf.sf x"
fi
TeamHavocRacing wrote:it's all the liberals fault
Post Reply