Pull sequential line set from a file.
% cut_by_line --help Usage: cut_by_line list.all 173 196 list.dark64 arg1 - Name of file to be cut from arg2 - First line number to be cut arg3 - Last line number to be cut arg4 - Name of the new (subset) file Example: % head -5 list.all /home/sco/HET_work/acm_nights/20170906/acm/20170906T014435.7_acm_sci.fits /home/sco/HET_work/acm_nights/20170906/acm/20170906T014442.3_acm_sci.fits /home/sco/HET_work/acm_nights/20170906/acm/20170906T014449.0_acm_sci.fits /home/sco/HET_work/acm_nights/20170906/acm/20170906T014608.3_acm_sci.fits /home/sco/HET_work/acm_nights/20170906/acm/20170906T014615.0_acm_sci.fits % cut_by_line list.all 1 3 a Cutiing file = list.all See new file = a % cat a /home/sco/HET_work/acm_nights/20170906/acm/20170906T014435.7_acm_sci.fits /home/sco/HET_work/acm_nights/20170906/acm/20170906T014442.3_acm_sci.fits /home/sco/HET_work/acm_nights/20170906/acm/20170906T014449.0_acm_sci.fits