OSDN Git Service

Add: PIONE tutorial for random. v2.0.2p0117
authorkinoshita-eos <kinoshita@yasunaga-lab.bio.kyutech.ac.jp>
Mon, 30 Mar 2015 06:11:35 +0000 (15:11 +0900)
committerkinoshita-eos <kinoshita@yasunaga-lab.bio.kyutech.ac.jp>
Mon, 30 Mar 2015 06:11:35 +0000 (15:11 +0900)
new file:   SampleCode/PIONE/Basic16/Input/1.txt
new file:   SampleCode/PIONE/Basic16/Input/2.txt
new file:   SampleCode/PIONE/Basic16/Input/3.txt
new file:   SampleCode/PIONE/Basic16/Random.pione

SampleCode/PIONE/Basic16/Input/1.txt [new file with mode: 0644]
SampleCode/PIONE/Basic16/Input/2.txt [new file with mode: 0644]
SampleCode/PIONE/Basic16/Input/3.txt [new file with mode: 0644]
SampleCode/PIONE/Basic16/Random.pione [new file with mode: 0644]

diff --git a/SampleCode/PIONE/Basic16/Input/1.txt b/SampleCode/PIONE/Basic16/Input/1.txt
new file mode 100644 (file)
index 0000000..fa5ca96
--- /dev/null
@@ -0,0 +1,3 @@
+ABC
+DEF
+GHI
diff --git a/SampleCode/PIONE/Basic16/Input/2.txt b/SampleCode/PIONE/Basic16/Input/2.txt
new file mode 100644 (file)
index 0000000..61c2b3d
--- /dev/null
@@ -0,0 +1,2 @@
+JKL
+MNO
diff --git a/SampleCode/PIONE/Basic16/Input/3.txt b/SampleCode/PIONE/Basic16/Input/3.txt
new file mode 100644 (file)
index 0000000..6fb2932
--- /dev/null
@@ -0,0 +1,4 @@
+PQR
+STU
+VWX
+YZa
diff --git a/SampleCode/PIONE/Basic16/Random.pione b/SampleCode/PIONE/Basic16/Random.pione
new file mode 100644 (file)
index 0000000..60af529
--- /dev/null
@@ -0,0 +1,10 @@
+Rule Main
+       input '*.in'
+       output '*.out'.all.random
+Action
+       max=$(wc -l {$I[1]} | awk '{print $1}')
+       for (( i=1; i<${max}; i++ ))
+       do
+               head -${i} {$I[1]} | tail -1 > {$I[1][1]}-{$i}.out
+       done
+End