cat_line_pairs
Updated: Nov 23, 2017

Assemble pairs of lines in a file.


% cat_line_pairs --help   

cat_line_pairs:
  Assemble pairs of lines in a file to make them easier to 
\read with a shell script. A typical use is to process my 
files build for easy free-format reading in fortran like 
wcs_setup.out. 

Example:
% cat wcs_setup.out
1
620.26362,292.40572  70.360184 32.698429
2
588.11372,469.2427   70.360405 32.684849
3
513.44529,503.5452   70.366707 32.681404

% cat_line_pairs wcs_setup.out
 1	 620.26362 292.40572  70.360184 32.698429
 2	 588.11372 469.2427   70.360405 32.684849
 3	 513.44529 503.5452   70.366707 32.681404





Back