• R/O
  • HTTP
  • SSH
  • HTTPS

tutorial: Commit

This repository is for tutorials of Eos.


Commit MetaInfo

Revisiondcee6d1dbf6ca00d0d01bc448a444ed3b94da541 (tree)
Time2015-03-30 15:11:35
Authorkinoshita-eos <kinoshita@yasu...>
Commiterkinoshita-eos

Log Message

Add: PIONE tutorial for random.
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

Change Summary

Incremental Difference

--- /dev/null
+++ b/SampleCode/PIONE/Basic16/Input/1.txt
@@ -0,0 +1,3 @@
1+ABC
2+DEF
3+GHI
--- /dev/null
+++ b/SampleCode/PIONE/Basic16/Input/2.txt
@@ -0,0 +1,2 @@
1+JKL
2+MNO
--- /dev/null
+++ b/SampleCode/PIONE/Basic16/Input/3.txt
@@ -0,0 +1,4 @@
1+PQR
2+STU
3+VWX
4+YZa
--- /dev/null
+++ b/SampleCode/PIONE/Basic16/Random.pione
@@ -0,0 +1,10 @@
1+Rule Main
2+ input '*.in'
3+ output '*.out'.all.random
4+Action
5+ max=$(wc -l {$I[1]} | awk '{print $1}')
6+ for (( i=1; i<${max}; i++ ))
7+ do
8+ head -${i} {$I[1]} | tail -1 > {$I[1][1]}-{$i}.out
9+ done
10+End
Show on old repository browser