Skip to content

Instantly share code, notes, and snippets.

View jdavisonc's full-sized avatar

Jorge Davison jdavisonc

View GitHub Profile
@jdavisonc
jdavisonc / Fixed-length-fields-TXT-Groovy.txt.groovy
Created June 28, 2018 13:43 — forked from martins1930/Fixed-length-fields-TXT-Groovy.txt.groovy
DataGrip extractor for txt file with fixed length columns
SEPARATOR = "|"
SPACE = " "
CORNER = "+"
LINE = "-"
NEWLINE = System.getProperty("line.separator")
def record(values, valueToString) {
values.collect { value ->
valueToString(value)
}