Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-3939

classfilterdsv() to parse and filter data using a specified ROW and COLUMN seperators

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: (None)
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      A new function, classfilterdsv() similar in nature to the existing classfiltercsv() function with the additional ability to select the ROW and COLUMN separators.

      classfilterdsv(filename, has_header, class_column, ROW_SEPERATOR, COLUMN_SEPERATOR, optional_sort_column)
      

      We want this primarily because it's very common to have CSV files that do not consistently end with CRLF as specified in RFC-4180 and we do not believe its safe/possible to reliably automatically determine how this should be handled.

      Why DSV?

      https://en.wikipedia.org/wiki/Delimiter-separated_values

      Formats that use delimiter-separated values (also DSV) store two-dimensional arrays of data by separating the values in each row with specific delimiter characters. Most database and spreadsheet programs are able to read or save data in a delimited format.

        Attachments

          Release management

            Issue Links

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                a10042 Nick Anderson
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated: