There is no need to use macros (@file
). Just use the system
function, which you give a concatenated string:
plot for [file in list] "< tail -n +4 ".file u 1:2 \
title system("head -n 1 ".file." | cut -d ':' -f 2")
Don't know the exact reason why your command with the macro doesn't work.