Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: sdbOK. Lavastormers - here is your challenge.
I would like to see the first graph that can reproduce the example input file Input.txt and write it to a new file Result.txt, that is identical character by character in all respects. The judge of that is the unix diff command.
Should there be more than one way (I reckon there is zero), then the tie-break will be the graph with the fewest nodes, and then the fewest lines of script. Python, Java and R are cheating.
Basically either this issue screams bug, or over sight in terms of the capabilities of the core library acquisition and publishing nodes.
Here is the file input.txt:
input.jpg
#!/bin/sh
echo "this is a statement output over\nmore than one line"
# a comment
non-shell compliant text but plain, and simple!@~:}{][!"�$%^&('#<>.,?!
echo "above there is a blank line"
echo 'this line uses single quotes'
echo 'this line is indented and \ttabbed'
echo 'this is the last line of the file terminated newline, EOF'
~
~
And my example graph - Good Luck - Simon
node:Delimited_File
bretype:core::Delimited File
editor:sortkey=568fb4f803990ee0
output:@41e6c6cd11e613c6/=
prop:FieldDelimiter=*
prop:FieldNames=line
prop:File=/tmp/input.txt
prop:RecordDelimiter=\n
editor:XY=450,200
end:Delimited_File
node:Reduce_To_List
bretype:core::Reduce To List
editor:sortkey=568fb9e61f4a08d9
input:@3fba65925f181f9b/=Delimited_File.41e6c6cd11e613c6
output:@3fba65920bf11dfc/=
prop:Delimiter="\n"
prop:GroupBy=<<EOX
1
EOX
prop:ItemField=line
editor:XY=550,320
end:Reduce_To_List
node:Output_Delimited
bretype:core::Output Delimited
editor:sortkey=568eb93b623d2520
input:@43c680084b824568/=Delimited_File.41e6c6cd11e613c6
prop:FieldDelimiter=*
prop:FieldNames=None
prop:File=/tmp/result.txt
prop:RecordDelimiter=\n
editor:XY=640,200
end:Output_Delimited
node:Add_final_new_line
bretype:core::Filter
editor:Label=Add final new line
editor:sortkey=568a6f7a44950f50
input:@40fd2c74167f1ca2/=Reduce_To_List.3fba65920bf11dfc
output:@40fd2c7420761db6/=
prop:Script=<<EOX
new_line_list = 'line-list' + "\n"
emit new_line_list as "line-list"
EOX
editor:XY=660,320
end:Add_final_new_line
node:Add_final_new_line_2
bretype:core::Filter
editor:Label=Add final new line
editor:sortkey=568a6f7a44950f50_2
input:@40fd2c74167f1ca2/=Add_final_new_line.40fd2c7420761db6
output:@40fd2c7420761db6/=
prop:Script=<<EOX
new_line_list = 'line-list' + "\n"
emit new_line_list as "line-list"
EOX
editor:XY=770,320
end:Add_final_new_line_2
node:Add_final_new_line_3
bretype:core::Filter
editor:Label=Add final new line
editor:sortkey=568a6f7a44950f50_3
input:@40fd2c74167f1ca2/=Add_final_new_line_2.40fd2c7420761db6
output:@40fd2c7420761db6/=
prop:Script=<<EOX
new_line_list = 'line-list' + "\n"
emit new_line_list as "line-list"
EOX
editor:XY=880,320
end:Add_final_new_line_3
node:Output_Raw
bretype:lal1::Output Raw
editor:sortkey=568fb9640b556b22
input:@5106ebc83f035045/=Add_final_new_line_3.40fd2c7420761db6
output:@4ffae39e126d75ee/=
prop:DataField=line-list
prop:Directory=/tmp
prop:File=rawresult.txt
prop:FileExistsBehavior=Overwrite
editor:XY=990,320
end:Output_Raw