Forum: Cfengine Help
Subject: Reading/Importing Just one line from csv file
Author: joe77
Link to topic: https://cfengine.com/forum/read.php?3,22039,22039#msg-22039

Hi,
I am new to Cfengine and i wonder how it is possible to extract just one line 
from a huge (csv)file. I want to read the fields and put each column in a field 
like array and write that to a new file.

At the moment i am testing with readstringarray() and getindices(). 
But i cant find a solution to limit readstringarray() to only read one specific 
line.

For example:
I want to read the line where there is "sw13" in that line. Put every column 
(csv!) of that line into fields of an array an write these to a new file.

Another question is: Is it possible to iterate over an array in Cfengine?

Any help appreciated!
Thanks in advance

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to