Вам просто нужно 'sort -k'
for f in *.csv; do
# output of first line
head -1 $f
# output of any but first line, then sort after 2. then 6. column
tail -n +2 $f | sort -k 2,6
done
Если у вас все в порядке с awk, попробуйте это решение:
find $PWD -name copyright | xargs awk 'BEGIN{ORS=","} FNR==1{print "\n"FILENAME}; $0 ~ /^License/ {print $0}' | sed 's/,$//g' |awk -F',' 'NF>1'