how to open .sh files in Windows 7?

All non-Go discussions should go here.
User avatar
handa711
Dies with sente
Posts: 109
Joined: Wed Oct 10, 2012 9:50 pm
Rank: KGS 2 kyu
GD Posts: 0
KGS: HandA
Tygem: NhaTrang11
IGS: Nagi
Wbaduk: handa711
OGS: hoanganh2357
Has thanked: 13 times
Been thanked: 9 times
Contact:

how to open .sh files in Windows 7?

Post by handa711 »

I downloaded some Go Seigen games, full name of the archive is goseigen.sh.z
I can extract .z with Winrar, but what do I do with the .sh file? is it a Linux file?.
amnal
Lives in gote
Posts: 589
Joined: Fri Apr 23, 2010 10:42 am
Rank: 2 dan
GD Posts: 0
Been thanked: 114 times

Re: how to open .sh files in Windows 7?

Post by amnal »

.sh usually refers to a shell script, quite probably bash. If so, you can open it in notepad to see what's in it.

I don't know why or how a set of games would be in a shell script file though. Where are they from?

Edit: I found what's presumably the same file and downloaded it to have a look. The first few lines of the file explain what it is:

# This is a shell archive. Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file". To overwrite existing
# files, type "sh file -c". You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g.. If this archive is complete, you
# will see the following message at the end:
# "End of shell archive."
# Contents: README game1 game2 game3 game4 game5 game6 game7 game8
# story.fujisawa story.hashimoto story.kitani story.sakata
# story.sakata.a story.sakata.b story.sakata.c story.sakata.d
# story.strongest story.takagawa story.takagawa.a story.wu.biog
# story.wu.idol
# Wrapped by jyu@asgard on Mon Sep 27 18:15:31 1993


To uncompress yourself it you'd need bash, and probably some other stuff, which you can probably install on windows via cygwin. It seems like a lot of effort to expand one random file though.
Last edited by amnal on Thu Oct 17, 2013 5:11 pm, edited 1 time in total.
User avatar
handa711
Dies with sente
Posts: 109
Joined: Wed Oct 10, 2012 9:50 pm
Rank: KGS 2 kyu
GD Posts: 0
KGS: HandA
Tygem: NhaTrang11
IGS: Nagi
Wbaduk: handa711
OGS: hoanganh2357
Has thanked: 13 times
Been thanked: 9 times
Contact:

Re: how to open .sh files in Windows 7?

Post by handa711 »

It's from here.
ftp://ftp.joyjoy.net/go/games/

I have no idea what to do now. Can I convert it to something?.
amnal
Lives in gote
Posts: 589
Joined: Fri Apr 23, 2010 10:42 am
Rank: 2 dan
GD Posts: 0
Been thanked: 114 times

Re: how to open .sh files in Windows 7?

Post by amnal »

handa711 wrote:It's from here.
ftp://ftp.joyjoy.net/go/games/

I have no idea what to do now. Can I convert it to something?.


I added an edit with some more information. It's literally a program containing all the text of the games etc., and all the program does is write that text to some files. However, because of this unusual 'archive' format, it isn't something you can easily convert to a different type, or extract with a normal windows tool.

Actually, I think the script is so simple that you could just open it with notepad (or a non-rubbish editor if you have one) and copy the sgfs wherever you like. Alternatively you could in principle install bash as I mentioned above, but that really is an in principle rather than something you probably want to bother doing.
User avatar
handa711
Dies with sente
Posts: 109
Joined: Wed Oct 10, 2012 9:50 pm
Rank: KGS 2 kyu
GD Posts: 0
KGS: HandA
Tygem: NhaTrang11
IGS: Nagi
Wbaduk: handa711
OGS: hoanganh2357
Has thanked: 13 times
Been thanked: 9 times
Contact:

Re: how to open .sh files in Windows 7?

Post by handa711 »

amnal wrote:
handa711 wrote:It's from here.
ftp://ftp.joyjoy.net/go/games/

I have no idea what to do now. Can I convert it to something?.


I added an edit with some more information. It's literally a program containing all the text of the games etc., and all the program does is write that text to some files. However, because of this unusual 'archive' format, it isn't something you can easily convert to a different type, or extract with a normal windows tool.

Actually, I think the script is so simple that you could just open it with notepad (or a non-rubbish editor if you have one) and copy the sgfs wherever you like. Alternatively you could in principle install bash as I mentioned above, but that really is an in principle rather than something you probably want to bother doing.

It's just a maze of texts with no paragraph breaks. How do I know what to copy? (there are about 8 games in this file I think).
User avatar
RBerenguel
Gosei
Posts: 1585
Joined: Fri Nov 18, 2011 11:44 am
Rank: KGS 5k
GD Posts: 0
KGS: RBerenguel
Tygem: rberenguel
Wbaduk: JohnKeats
Kaya handle: RBerenguel
Online playing schedule: KGS on Saturday I use to be online, but I can be if needed from 20-23 GMT+1
Location: Barcelona, Spain (GMT+1)
Has thanked: 576 times
Been thanked: 298 times
Contact:

Re: how to open .sh files in Windows 7?

Post by RBerenguel »

I read the readme on that server and it looks like these files are the "Go on go" book, in split-file format. You can download it as a book (legally, this is not an illegal copy of something as far as I know) from here: http://www.5z.com/tucsongo/book/
Geek of all trades, master of none: the motto for my blog mostlymaths.net
User avatar
handa711
Dies with sente
Posts: 109
Joined: Wed Oct 10, 2012 9:50 pm
Rank: KGS 2 kyu
GD Posts: 0
KGS: HandA
Tygem: NhaTrang11
IGS: Nagi
Wbaduk: handa711
OGS: hoanganh2357
Has thanked: 13 times
Been thanked: 9 times
Contact:

Re: how to open .sh files in Windows 7?

Post by handa711 »

RBerenguel wrote:I read the readme on that server and it looks like these files are the "Go on go" book, in split-file format. You can download it as a book (legally, this is not an illegal copy of something as far as I know) from here: http://www.5z.com/tucsongo/book/

That book is so hard to read due to the author using E4, A19 etc. instead of A,B,C like other books. Do you have any place for Go Seigen kifus? Just kifu, no commentaries is fine.
User avatar
RBerenguel
Gosei
Posts: 1585
Joined: Fri Nov 18, 2011 11:44 am
Rank: KGS 5k
GD Posts: 0
KGS: RBerenguel
Tygem: rberenguel
Wbaduk: JohnKeats
Kaya handle: RBerenguel
Online playing schedule: KGS on Saturday I use to be online, but I can be if needed from 20-23 GMT+1
Location: Barcelona, Spain (GMT+1)
Has thanked: 576 times
Been thanked: 298 times
Contact:

Re: how to open .sh files in Windows 7?

Post by RBerenguel »

See here: http://gobase.org/games/cn/masters/goseigen/

And indeed, the book is not great, but it's auto-created from these kifus you wanted to download, so they will probably be quite alike :/
Geek of all trades, master of none: the motto for my blog mostlymaths.net
User avatar
handa711
Dies with sente
Posts: 109
Joined: Wed Oct 10, 2012 9:50 pm
Rank: KGS 2 kyu
GD Posts: 0
KGS: HandA
Tygem: NhaTrang11
IGS: Nagi
Wbaduk: handa711
OGS: hoanganh2357
Has thanked: 13 times
Been thanked: 9 times
Contact:

Re: how to open .sh files in Windows 7?

Post by handa711 »

I have no money :cry: any free download? I just wanna see a few games of Go Seigen.
User avatar
leichtloeslich
Lives in gote
Posts: 314
Joined: Wed Feb 29, 2012 1:16 pm
Rank: KGS 4k
GD Posts: 0
Location: Germany
Has thanked: 10 times
Been thanked: 128 times

Re: how to open .sh files in Windows 7?

Post by leichtloeslich »

User avatar
handa711
Dies with sente
Posts: 109
Joined: Wed Oct 10, 2012 9:50 pm
Rank: KGS 2 kyu
GD Posts: 0
KGS: HandA
Tygem: NhaTrang11
IGS: Nagi
Wbaduk: handa711
OGS: hoanganh2357
Has thanked: 13 times
Been thanked: 9 times
Contact:

Re: how to open .sh files in Windows 7?

Post by handa711 »

leichtloeslich wrote:http://gokifu.com/playerother/Go+Seigen

wow thanks. When I searched for him on gokifu there were only 3 or 4 games. Weird.
User avatar
handa711
Dies with sente
Posts: 109
Joined: Wed Oct 10, 2012 9:50 pm
Rank: KGS 2 kyu
GD Posts: 0
KGS: HandA
Tygem: NhaTrang11
IGS: Nagi
Wbaduk: handa711
OGS: hoanganh2357
Has thanked: 13 times
Been thanked: 9 times
Contact:

Re: how to open .sh files in Windows 7?

Post by handa711 »

What does the result "W+J" means?
User avatar
Bonobo
Oza
Posts: 2224
Joined: Fri Dec 23, 2011 6:39 pm
Rank: OGS 9k
GD Posts: 0
OGS: trohde
Universal go server handle: trohde
Location: Germany
Has thanked: 8262 times
Been thanked: 924 times
Contact:

Re: how to open .sh files in Windows 7?

Post by Bonobo »

RBerenguel wrote:I read the readme on that server and it looks like these files are the "Go on go" book, in split-file format. You can download it as a book (legally, this is not an illegal copy of something as far as I know) from here: http://www.5z.com/tucsongo/book/
Don’t know whether I have missed something, but if it’s Go Seigen’s book “Go on Go: The Analyzed Games of Go Seigen” that anybody of you would want to have you can find it here for free: http://www.usgo.org/files/pdf/go-seigen-book.pdf

Greetings, Tom
“The only difference between me and a madman is that I’m not mad.” — Salvador Dali ★ Play a slooooow correspondence game with me on OGS? :)
User avatar
RBerenguel
Gosei
Posts: 1585
Joined: Fri Nov 18, 2011 11:44 am
Rank: KGS 5k
GD Posts: 0
KGS: RBerenguel
Tygem: rberenguel
Wbaduk: JohnKeats
Kaya handle: RBerenguel
Online playing schedule: KGS on Saturday I use to be online, but I can be if needed from 20-23 GMT+1
Location: Barcelona, Spain (GMT+1)
Has thanked: 576 times
Been thanked: 298 times
Contact:

Re: how to open .sh files in Windows 7?

Post by RBerenguel »

Bonobo wrote:
RBerenguel wrote:I read the readme on that server and it looks like these files are the "Go on go" book, in split-file format. You can download it as a book (legally, this is not an illegal copy of something as far as I know) from here: http://www.5z.com/tucsongo/book/
Don’t know whether I have missed something, but if it’s Go Seigen’s book “Go on Go: The Analyzed Games of Go Seigen” that anybody of you would want to have you can find it here for free: http://www.usgo.org/files/pdf/go-seigen-book.pdf

Greetings, Tom


Same book, equally legal. My link IIRC is the original place it's been hosted, the USGo mirrors it.

Oh, and when I answered with a gobase link I intendes to send a gokifu one, did it too fast without thinking too much :D
Geek of all trades, master of none: the motto for my blog mostlymaths.net
xed_over
Oza
Posts: 2264
Joined: Mon Apr 19, 2010 11:51 am
Has thanked: 1179 times
Been thanked: 553 times

Re: how to open .sh files in Windows 7?

Post by xed_over »

handa711 wrote:It's from here.
ftp://ftp.joyjoy.net/go/games/

Ooh, thanks for this link. That's a very clever, and very old, archive method.

Bonobo wrote:
RBerenguel wrote:I read the readme on that server and it looks like these files are the "Go on go" book, in split-file format. You can download it as a book (legally, this is not an illegal copy of something as far as I know) from here: http://www.5z.com/tucsongo/book/
Don’t know whether I have missed something, but if it’s Go Seigen’s book “Go on Go: The Analyzed Games of Go Seigen” that anybody of you would want to have you can find it here for free: http://www.usgo.org/files/pdf/go-seigen-book.pdf


Patrick Bridges' site has a more modern zip and tar archives of the same original source files.

But the games are very old MTG format. They are very close to SGF format, but not exact.

There are several programs that will convert them. I used GOWrite on the Mac to open and re-save as SGF files. Its quite helpful to have the commented files with proper variation trees to go along with reading the book. (Several years ago, I tried unsuccessfully to convert them by hand, but kept getting hung up on the proper order of the AE property)

Its too bad his first version of the book isn't easily available as a PDF, because the other one is -- how can I say this nicely -- crap. Some of its diagrams are missing moves and stones, etc. But it may be because the tools he used expected SGF files, when what he had were MTG files (again, close, but no cigar).

His first version, which he only provides postscript and no PDF, is much, much better (but not completely error free either). Unfortunately, he's right, that the resulting PDF is over 10 times larger.

Both cases, very brilliant, and much appreciated work. Kudos to Patrick for his efforts here.

Of course, these days, an 18meg file is nothing.

I tried to make the other PDF file available on the USGO site, but with the reorg, and losing my access, that effort appears to have been lost.

The Analyzed Games of Go Seigen
commented games (SGF)
PDF book (first version)
Post Reply