Help for this page

Select Code to Download


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