If anyone has the file extractor shortcut ill pay up to 10 bucks! greatly appreciated.
PM me plz
Saf File Extractor!!!
-
- Posts: 1931
- Joined: Fri Jun 21, 2013 5:38 pm
- Team: Elevated Motorsports
Re: Saf File Extractor!!!
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