View Single Post
Old 05-09-2012, 06:42 PM   #7
Nyoxi
Connoisseur
Nyoxi can talk all four legs off a donkey... then persuade it to go for a walk.Nyoxi can talk all four legs off a donkey... then persuade it to go for a walk.Nyoxi can talk all four legs off a donkey... then persuade it to go for a walk.Nyoxi can talk all four legs off a donkey... then persuade it to go for a walk.Nyoxi can talk all four legs off a donkey... then persuade it to go for a walk.Nyoxi can talk all four legs off a donkey... then persuade it to go for a walk.Nyoxi can talk all four legs off a donkey... then persuade it to go for a walk.Nyoxi can talk all four legs off a donkey... then persuade it to go for a walk.Nyoxi can talk all four legs off a donkey... then persuade it to go for a walk.Nyoxi can talk all four legs off a donkey... then persuade it to go for a walk.Nyoxi can talk all four legs off a donkey... then persuade it to go for a walk.
 
Posts: 55
Karma: 124493
Join Date: Jan 2012
Device: Kindle Touch
Just a small comment. Why does the file external.sh have .sh extension if it is javascript file (.js)? Also the following should do what you want in one run, no need for temporary files and multiple sed invocations:

Code:
find sgf/ -iname '*.sgf' | sed -e '1ivar sgfFiles = [' -e '$ { s/.*/"\0" ]/;p;d }' -e 's/.*/"\0",/' > player/external.js
Nyoxi is offline   Reply With Quote