Files
mastering-unix-ss/chapter5/function_merge_fixed_length_records
Fabio Scotto di Santolo 4cc88d2f6e initial commit
2020-07-28 19:28:25 +02:00

12 lines
195 B
Plaintext
Executable File

function merge_fixed_length_records
{
# set -x
while read RECORDFILENAME
do
sed s/$/$(basename $RECORDFILENAME 2>/dev/null)/g $RECORDFILENAME >> $MERGERECORDFILE
done < $RECORDFILELIST
}