- or download this
% cat flatfile.pipe
COL1 | someother data|122343221|blahbalhbalh
- or download this
% cat flatfile.colon
COL1 : someother data:122343221:blahbalhbalh
- or download this
% cat splitit.pl
#!/sur/bin/perl
...
foreach $col (@columns) {
print "[$col]\n";
}
- or download this
% ./splitit.pl -c':' < flatfile.colons
- or download this
[COL1 ]
[ someother data]
[122343221]
[blahbalhbalh]
- or download this
% ./splitit.pl -c'|' < flatfile.pipes
- or download this
[C]
[O]
...
[|]
[ ]
[s]