I think you could save it as a shell script, then run it via bash: http://www.windowscentral.com/how-insta ... windows-10Edo wrote:sorry, can anyone explain me how should i run it? i really can't get it
saf extractor
Re: saf extractor
Discord: StorkeN#6883 - StorkenMXS Youtube - StorkenMXS Instagram - StorkenMXS Facebook - TMFR on Faceboook
Re: saf extractor
sorry but i don't have windows 10, how can i do this?
Re: saf extractor
my problem is that i'm in the bash but i don't know what to do, i've saved the jlv's script in shell (sh) but then i don't know how to run it because when i run the .sh file it says " saf.sf c..." "saf.sf x <" to create and to extract etc. but when i put into ./saf.sf x <(saf file) it says "no such file or directory"
pls help
pls help
Re: saf extractor
i hate posting totoo much but, i got it now, i renamed the shell "saf.sf" and then, after i wrote "./saf.sf x <nameofmysaf.saf" and i run it, he shows me this, i can't get out of this . please help.
https://imgur.com/a/PyREGpQ
https://imgur.com/a/PyREGpQ
Re: saf extractor
Anyone have luck running this under WSL?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
Re: saf extractor
Nvm, figured it out, I was passing the target directory instead of the saf to stdin.baker wrote: ↑Tue Jan 25, 2022 3:40 amAnyone have luck running this under WSL?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