• R/O
  • HTTP
  • SSH
  • HTTPS

tutorial: Commit

This repository is for tutorials of Eos.


Commit MetaInfo

Revision78201884f58be09cfebd549e3db109e2332df9ec (tree)
Time2015-01-16 15:34:28
Authorkinoshita-eos <kinoshita@yasu...>
Commiterkinoshita-eos

Log Message

Add: PIONE tutorial about Except of DataExpr.
new file: SampleCode/PIONE/Basic14/DivideText.pione
new file: SampleCode/PIONE/Basic14/DivideTextInput/AllData.txt

Change Summary

Incremental Difference

--- /dev/null
+++ b/SampleCode/PIONE/Basic14/DivideText.pione
@@ -0,0 +1,17 @@
1+Rule Main
2+ input 'AllData.txt'
3+ output '*.txt'.all.except($I[1])
4+Flow
5+ rule GetLine {filename:"Data1", line:1}
6+ rule GetLine {filename:"Data2", line:2}
7+ rule GetLine {filename:"Data3", line:3}
8+End
9+
10+Rule GetLine
11+ input 'AllData.txt'
12+ output '{$filename}.txt'
13+ param $filename
14+ param $line
15+Action
16+ head -{$line} {$I[1]} | tail -1 > {$O[1]}
17+End
\ No newline at end of file
--- /dev/null
+++ b/SampleCode/PIONE/Basic14/DivideTextInput/AllData.txt
@@ -0,0 +1,3 @@
1+ABC
2+DEF
3+GHI
Show on old repository browser