BobWaterhouse
Programmer
I am trying to copy a file based on line numbers within the files. I can figure the To and From numbers by using grep, but, when trying to copy that specific range, I'm erroring out. I've tried a few ways, but, to know avail. Here's an example..
sed -n $STSTART','$STEND' p' $temp4 >> $temp5
sed -n "$STSTART,$STEND p" $temp4 >> $temp5
sed -n "$STSTART","$STEND" p $temp4 >> $temp5
Also, is this not a true range, but, the starting line and the length to copy?
Any help would be appreciated.
sed -n $STSTART','$STEND' p' $temp4 >> $temp5
sed -n "$STSTART,$STEND p" $temp4 >> $temp5
sed -n "$STSTART","$STEND" p $temp4 >> $temp5
Also, is this not a true range, but, the starting line and the length to copy?
Any help would be appreciated.