Skip to content

Instantly share code, notes, and snippets.

View martins1930's full-sized avatar

Martin Steffen martins1930

  • Montevideo, Uruguay
View GitHub Profile
@martins1930
martins1930 / Fixed-length-fields-TXT-Groovy.txt.groovy
Created February 16, 2018 00:52 — forked from mvitaly/Fixed-length-fields.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)
}