Read each line of a file and write it out witha line number.
% number_lines --help Help Information for: number_lines Usage: number_lines file1 arg1 - Name of file to be numbered I will show: /home/sco/sco/codes/bash/HELP_FILES/number_lines.help Enter any key to roceed with the view of help: number_lines: Read each line in the input file (arg1) and write it out preceded by a line number. The lines are written to standard out, but I often redirect the output to a file and then, within a script lie acm_getim, I display the numbered file with the unix more utility. EXAMPLES: % number_lines test.1 1 Hi Steve, 2 I think that your suggestion of using dwfs8 to derive IHMP/acam 3 parameters seems like a very good test to run now that dwfs8-owfs 4 calibration work is largely complete. 5 6 --------------- 7 TEST 0: % number_lines list.1 > a.num % cat a.num 1 /home/sco/HET_work/lrs2_points/20161221/acm/20161221T014915.7_acm_sci.fits 2 /home/sco/HET_work/lrs2_points/20161221/acm/20161221T014922.3_acm_sci.fits 3 /home/sco/HET_work/lrs2_points/20161221/acm/20161221T015635.4_acm_sci.fits 4 /home/sco/HET_work/lrs2_points/20161221/acm/20161221T015642.1_acm_sci.fits