This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
awk 'BEGIN {FS=";"} | |
((length($2)>5 || length($3)==7) && length($4)==0) {print "OK " $0; next} | |
{print "KO " $0} | |
' file | |
# input data | |
# col11OK;col12;col13 | |
# col21;col22OK;col23 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Map; | |
import java.util.TreeMap; | |
public class FooBarQix { | |
// TreeMap sort key 3 > 5 > 7 for priority | |
private static final TreeMap<Integer, String> FOOBARQIX = new TreeMap<Integer, String>() {{ | |
put(7, "Qix"); | |
put(3, "Foo"); | |
put(5, "Bar"); |
NewerOlder