Change: switching to bash instead of the deprecated C Shell
This commit is contained in:
parent
8d32be7acd
commit
95b8ccfad4
5 changed files with 72 additions and 73 deletions
26
Code/brute_force_oneFile_mdl_v2.scr
Normal file → Executable file
26
Code/brute_force_oneFile_mdl_v2.scr
Normal file → Executable file
|
|
@ -1,18 +1,18 @@
|
||||||
#!/bin/csh
|
#!/bin/bash
|
||||||
# USAGE EXAMPLE: solve_mysteries.scr ops6.txt 2
|
# USAGE EXAMPLE: solve_mysteries.scr ops6.txt 2
|
||||||
# USAGE EXAMPLE: solve_mysteries.scr allops.txt 1800
|
# USAGE EXAMPLE: solve_mysteries.scr allops.txt 1800
|
||||||
set opsfile = $1
|
opsfile=$1
|
||||||
set maxtime = $2
|
maxtime=$2
|
||||||
set f = $3
|
f=$3
|
||||||
set sigma = $4
|
sigma=$4
|
||||||
set band = $5
|
band=$5
|
||||||
|
|
||||||
set outfile = brute_solutions.dat
|
outfile=brute_solutions.dat
|
||||||
set outfile2 = brute_constant.dat
|
outfile2=brute_constant.dat
|
||||||
set outfile3 = brute_formulas.dat
|
outfile3=brute_formulas.dat
|
||||||
if -f $outfile /bin/rm $outfile
|
if [ -f $outfile ]; then /bin/rm $outfile; fi
|
||||||
if -f $outfile2 /bin/rm $outfile2
|
if [ -f $outfile2 ]; then /bin/rm $outfile2; fi
|
||||||
if -f $outfile3 /bin/rm $outfile3
|
if [ -f $outfile3 ]; then /bin/rm $outfile3; fi
|
||||||
|
|
||||||
echo Trying to solve mysteries with brute force...
|
echo Trying to solve mysteries with brute force...
|
||||||
|
|
||||||
|
|
@ -20,4 +20,4 @@ echo Trying to solve $f...
|
||||||
echo /bin/cp -p $f mystery.dat
|
echo /bin/cp -p $f mystery.dat
|
||||||
/bin/cp -p $f mystery.dat
|
/bin/cp -p $f mystery.dat
|
||||||
echo $opsfile arity2templates.txt mystery.dat results.dat $sigma $band >args.dat
|
echo $opsfile arity2templates.txt mystery.dat results.dat $sigma $band >args.dat
|
||||||
timeout {$maxtime}s ./symbolic_regress_mdl2.x
|
timeout $maxtime ./symbolic_regress_mdl2.x
|
||||||
|
|
|
||||||
33
Code/brute_force_oneFile_mdl_v3.scr
Normal file → Executable file
33
Code/brute_force_oneFile_mdl_v3.scr
Normal file → Executable file
|
|
@ -1,24 +1,23 @@
|
||||||
#!/bin/csh
|
#!/bin/bash
|
||||||
# USAGE EXAMPLE: solve_mysteries.scr ops6.txt 2
|
# USAGE EXAMPLE: solve_mysteries.scr ops6.txt 2
|
||||||
# USAGE EXAMPLE: solve_mysteries.scr allops.txt 1800
|
# USAGE EXAMPLE: solve_mysteries.scr allops.txt 1800
|
||||||
set opsfile = $1
|
opsfile=$1
|
||||||
set maxtime = $2
|
maxtime=$2
|
||||||
set f = $3
|
f=$3
|
||||||
set sigma = $4
|
sigma=$4
|
||||||
set band = $5
|
band=$5
|
||||||
|
|
||||||
set outfile = brute_solutions.dat
|
outfile=brute_solutions.dat
|
||||||
set outfile2 = brute_constant.dat
|
outfile2=brute_constant.dat
|
||||||
set outfile3 = brute_formulas.dat
|
outfile3=brute_formulas.dat
|
||||||
if -f $outfile /bin/rm $outfile
|
if [ -f $outfile ]; then /bin/rm $outfile; fi
|
||||||
if -f $outfile2 /bin/rm $outfile2
|
if [ -f $outfile2 ]; then /bin/rm $outfile2; fi
|
||||||
if -f $outfile3 /bin/rm $outfile3
|
if [ -f $outfile3 ]; then /bin/rm $outfile3; fi
|
||||||
|
|
||||||
echo Trying to solve mysteries with brute force...
|
echo Trying to solve mysteries with brute force...
|
||||||
|
|
||||||
echo Trying to solve $f...
|
echo Trying to solve "$f..."
|
||||||
echo /bin/cp -p $f mystery.dat
|
echo /bin/cp -p "$f" mystery.dat
|
||||||
/bin/cp -p $f mystery.dat
|
/bin/cp -p $f mystery.dat
|
||||||
echo $opsfile arity2templates.txt mystery.dat results.dat $sigma $band >args.dat
|
echo "$opsfile" arity2templates.txt mystery.dat results.dat "$sigma" "$band" >args.dat
|
||||||
|
timeout $maxtime ./symbolic_regress_mdl3.x;
|
||||||
timeout {$maxtime}s ./symbolic_regress_mdl3.x
|
|
||||||
|
|
|
||||||
25
Code/brute_force_oneFile_v1.scr
Normal file → Executable file
25
Code/brute_force_oneFile_v1.scr
Normal file → Executable file
|
|
@ -1,19 +1,20 @@
|
||||||
#!/bin/csh
|
#!/bin/bash
|
||||||
# USAGE EXAMPLE: solve_mysteries.scr ops6.txt 2
|
# USAGE EXAMPLE: solve_mysteries.scr ops6.txt 2
|
||||||
# USAGE EXAMPLE: solve_mysteries.scr allops.txt 1800
|
# USAGE EXAMPLE: solve_mysteries.scr allops.txt 1800
|
||||||
set opsfile = $1
|
opsfile=$1
|
||||||
set maxtime = $2
|
maxtime=$2
|
||||||
set f = $3
|
f=$3
|
||||||
|
|
||||||
set outfile = brute_solutions.dat
|
outfile=brute_solutions.dat
|
||||||
set outfile2 = brute_formulas.dat
|
outfile2=brute_constant.dat
|
||||||
if -f $outfile /bin/rm $outfile
|
|
||||||
if -f $outfile2 /bin/rm $outfile2
|
if [ -f $outfile ]; then /bin/rm $outfile; fi
|
||||||
|
if [ -f $outfile2 ]; then /bin/rm $outfile2; fi
|
||||||
|
|
||||||
echo Trying to solve mysteries with brute force...
|
echo Trying to solve mysteries with brute force...
|
||||||
|
|
||||||
echo Trying to solve $f...
|
echo Trying to solve "$f..."
|
||||||
echo /bin/cp -p $f mystery.dat
|
echo /bin/cp -p "$f" mystery.dat
|
||||||
/bin/cp -p $f mystery.dat
|
/bin/cp -p $f mystery.dat
|
||||||
echo $opsfile arity2templates.txt mystery.dat results.dat >args.dat
|
echo "$opsfile" arity2templates.txt mystery.dat results.dat "$sigma" "$band" >args.dat
|
||||||
timeout {$maxtime}s ./symbolic_regress1.x
|
timeout $maxtime ./symbolic_regress1.x;
|
||||||
|
|
|
||||||
31
Code/brute_force_oneFile_v2.scr
Normal file → Executable file
31
Code/brute_force_oneFile_v2.scr
Normal file → Executable file
|
|
@ -1,21 +1,22 @@
|
||||||
#!/bin/csh
|
#!/bin/bash
|
||||||
# USAGE EXAMPLE: solve_mysteries.scr ops6.txt 2
|
# USAGE EXAMPLE: solve_mysteries.scr ops6.txt 2
|
||||||
# USAGE EXAMPLE: solve_mysteries.scr allops.txt 1800
|
# USAGE EXAMPLE: solve_mysteries.scr allops.txt 1800
|
||||||
set opsfile = $1
|
opsfile=$1
|
||||||
set maxtime = $2
|
maxtime=$2
|
||||||
set f = $3
|
f=$3
|
||||||
|
|
||||||
set outfile = brute_solutions.dat
|
outfile=brute_solutions.dat
|
||||||
set outfile2 = brute_constant.dat
|
outfile2=brute_constant.dat
|
||||||
set outfile3 = brute_formulas.dat
|
outfile3=brute_formulas.dat
|
||||||
if -f $outfile /bin/rm $outfile
|
if [ -f $outfile ]; then /bin/rm $outfile; fi
|
||||||
if -f $outfile2 /bin/rm $outfile2
|
if [ -f $outfile2 ]; then /bin/rm $outfile2; fi
|
||||||
if -f $outfile3 /bin/rm $outfile3
|
if [ -f $outfile3 ]; then /bin/rm $outfile3; fi
|
||||||
|
|
||||||
echo Trying to solve mysteries with brute force...
|
echo Trying to solve mysteries with brute force...
|
||||||
|
|
||||||
echo Trying to solve $f...
|
echo Trying to solve "$f..."
|
||||||
echo /bin/cp -p $f mystery.dat
|
echo /bin/cp -p "$f" mystery.dat
|
||||||
/bin/cp -p $f mystery.dat
|
/bin/cp -p "$f" mystery.dat
|
||||||
echo $opsfile arity2templates.txt mystery.dat results.dat >args.dat
|
echo "$opsfile" arity2templates.txt mystery.dat results.dat >args.dat
|
||||||
timeout {$maxtime}s ./symbolic_regress2.x
|
timeout $maxtime ./symbolic_regress2.x;
|
||||||
|
|
||||||
|
|
|
||||||
30
Code/brute_force_oneFile_v3.scr
Normal file → Executable file
30
Code/brute_force_oneFile_v3.scr
Normal file → Executable file
|
|
@ -1,23 +1,21 @@
|
||||||
#!/bin/csh
|
#!/bin/bash
|
||||||
# USAGE EXAMPLE: solve_mysteries.scr ops6.txt 2
|
# USAGE EXAMPLE: solve_mysteries.scr ops6.txt 2
|
||||||
# USAGE EXAMPLE: solve_mysteries.scr allops.txt 1800
|
# USAGE EXAMPLE: solve_mysteries.scr allops.txt 1800
|
||||||
set opsfile = $1
|
opsfile=$1
|
||||||
set maxtime = $2
|
maxtime=$2
|
||||||
set f = $3
|
f=$3
|
||||||
|
|
||||||
set outfile = brute_solutions.dat
|
outfile=brute_solutions.dat
|
||||||
set outfile2 = brute_constant.dat
|
outfile2=brute_constant.dat
|
||||||
set outfile3 = brute_formulas.dat
|
outfile3=brute_formulas.dat
|
||||||
if -f $outfile /bin/rm $outfile
|
if [ -f $outfile ]; then /bin/rm $outfile; fi
|
||||||
if -f $outfile2 /bin/rm $outfile2
|
if [ -f $outfile2 ]; then /bin/rm $outfile2; fi
|
||||||
if -f $outfile3 /bin/rm $outfile3
|
if [ -f $outfile3 ]; then /bin/rm $outfile3; fi
|
||||||
|
|
||||||
echo Trying to solve mysteries with brute force...
|
echo Trying to solve mysteries with brute force...
|
||||||
|
|
||||||
echo Trying to solve $f...
|
echo Trying to solve "$f..."
|
||||||
echo /bin/cp -p $f mystery.dat
|
echo /bin/cp -p "$f" mystery.dat
|
||||||
/bin/cp -p $f mystery.dat
|
/bin/cp -p $f mystery.dat
|
||||||
echo $opsfile arity2templates.txt mystery.dat results.dat >args.dat
|
echo "$opsfile" arity2templates.txt mystery.dat results.dat >args.dat
|
||||||
|
timeout $maxtime ./symbolic_regress3.x;
|
||||||
timeout {$maxtime}s ./symbolic_regress3.x
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue