mirror of
https://github.com/johnkerl/miller.git
synced 2026-08-03 04:52:24 +00:00
98 lines
3.9 KiB
Text
98 lines
3.9 KiB
Text
|
|
mlr --irs crlf --icsvlite --ifs , --opprint cut -x -f b/ ./reg-test/input/multi-sep.csv-crlf
|
|
a/ i/ x/ y/
|
|
wye/ 0/ 0.641593543645736508/ 0.262688053894177098
|
|
eks/ 1/ 0.827614412562742041/ 0.715431942006308552
|
|
zee/ 2/ 0.923068348748175560/ 0.009737410587136359
|
|
zee/ 3/ 0.000047786161325772/ 0.803142013402256216
|
|
zee/ 4/ 0.676537984365847889/ 0.573903236805416328
|
|
|
|
mlr --irs crlf --implicit-csv-header --icsvlite --ifs , --opprint cut -x -f 2 ./reg-test/input/multi-sep.csv-crlf
|
|
1 3 4 5
|
|
a/ i/ x/ y/
|
|
wye/ 0/ 0.641593543645736508/ 0.262688053894177098
|
|
eks/ 1/ 0.827614412562742041/ 0.715431942006308552
|
|
zee/ 2/ 0.923068348748175560/ 0.009737410587136359
|
|
zee/ 3/ 0.000047786161325772/ 0.803142013402256216
|
|
zee/ 4/ 0.676537984365847889/ 0.573903236805416328
|
|
|
|
mlr --irs crlf --icsvlite --ifs /, --opprint cut -x -f b ./reg-test/input/multi-sep.csv-crlf
|
|
a i x y/
|
|
wye 0 0.641593543645736508 0.262688053894177098
|
|
eks 1 0.827614412562742041 0.715431942006308552
|
|
zee 2 0.923068348748175560 0.009737410587136359
|
|
zee 3 0.000047786161325772 0.803142013402256216
|
|
zee 4 0.676537984365847889 0.573903236805416328
|
|
|
|
mlr --irs crlf --implicit-csv-header --icsvlite --ifs /, --opprint cut -x -f 2 ./reg-test/input/multi-sep.csv-crlf
|
|
1 3 4 5
|
|
a i x y/
|
|
wye 0 0.641593543645736508 0.262688053894177098
|
|
eks 1 0.827614412562742041 0.715431942006308552
|
|
zee 2 0.923068348748175560 0.009737410587136359
|
|
zee 3 0.000047786161325772 0.803142013402256216
|
|
zee 4 0.676537984365847889 0.573903236805416328
|
|
|
|
mlr --icsv --ifs , --opprint cut -x -f b/ ./reg-test/input/multi-sep.csv-crlf
|
|
a/ i/ x/ y/
|
|
wye/ 0/ 0.641593543645736508/ 0.262688053894177098
|
|
eks/ 1/ 0.827614412562742041/ 0.715431942006308552
|
|
zee/ 2/ 0.923068348748175560/ 0.009737410587136359
|
|
zee/ 3/ 0.000047786161325772/ 0.803142013402256216
|
|
zee/ 4/ 0.676537984365847889/ 0.573903236805416328
|
|
|
|
mlr --implicit-csv-header --icsv --ifs , --opprint cut -x -f 2 ./reg-test/input/multi-sep.csv-crlf
|
|
1 3 4 5
|
|
a/ i/ x/ y/
|
|
wye/ 0/ 0.641593543645736508/ 0.262688053894177098
|
|
eks/ 1/ 0.827614412562742041/ 0.715431942006308552
|
|
zee/ 2/ 0.923068348748175560/ 0.009737410587136359
|
|
zee/ 3/ 0.000047786161325772/ 0.803142013402256216
|
|
zee/ 4/ 0.676537984365847889/ 0.573903236805416328
|
|
|
|
mlr --icsv --ifs /, --opprint cut -x -f b ./reg-test/input/multi-sep.csv-crlf
|
|
a i x y/
|
|
wye 0 0.641593543645736508 0.262688053894177098
|
|
eks 1 0.827614412562742041 0.715431942006308552
|
|
zee 2 0.923068348748175560 0.009737410587136359
|
|
zee 3 0.000047786161325772 0.803142013402256216
|
|
zee 4 0.676537984365847889 0.573903236805416328
|
|
|
|
mlr --implicit-csv-header --icsv --ifs /, --opprint cut -x -f 2 ./reg-test/input/multi-sep.csv-crlf
|
|
1 3 4 5
|
|
a i x y/
|
|
wye 0 0.641593543645736508 0.262688053894177098
|
|
eks 1 0.827614412562742041 0.715431942006308552
|
|
zee 2 0.923068348748175560 0.009737410587136359
|
|
zee 3 0.000047786161325772 0.803142013402256216
|
|
zee 4 0.676537984365847889 0.573903236805416328
|
|
|
|
mlr --csv -N reorder -f 1,3,2,5,4 ./reg-test/input/multi-sep.csv-crlf
|
|
a/,i/,b/,y/,x/
|
|
wye/,0/,eks/,0.262688053894177098,0.641593543645736508/
|
|
eks/,1/,zee/,0.715431942006308552,0.827614412562742041/
|
|
zee/,2/,zee/,0.009737410587136359,0.923068348748175560/
|
|
zee/,3/,pan/,0.803142013402256216,0.000047786161325772/
|
|
zee/,4/,hat/,0.573903236805416328,0.676537984365847889/
|
|
|
|
mlr --csv -N reorder -f 5,4,3,2,1 ./reg-test/input/multi-sep.csv-crlf
|
|
y/,x/,i/,b/,a/
|
|
0.262688053894177098,0.641593543645736508/,0/,eks/,wye/
|
|
0.715431942006308552,0.827614412562742041/,1/,zee/,eks/
|
|
0.009737410587136359,0.923068348748175560/,2/,zee/,zee/
|
|
0.803142013402256216,0.000047786161325772/,3/,pan/,zee/
|
|
0.573903236805416328,0.676537984365847889/,4/,hat/,zee/
|
|
|
|
mlr --icsv --otsv -N cat
|
|
a b c
|
|
1 2 3
|
|
4 5 6
|
|
|
|
mlr --ixtab --opprint -N cat
|
|
1 2 3
|
|
4 5 6
|
|
|
|
mlr --icsv --pprint -N cat
|
|
1,2,3
|
|
4,5,6
|
|
|