I have an awk command on ksh script, the command extract fields from a log file to then struct them in new one.
ultimate=$(grep -oP 'Time:\K.*' $log2 | column -t | awk '{print $3,"/","'"$month"'","/",$2,";",$4,";","'"$fBrand"'",";",'"$fUser"'",";","'"$fSerial"'",";","'"$fEmail"'",";","'"$fLocation"'",";"}' | sort | sed 's: ::g')
when I execute the script, it returns to me:
awk: cmd. line:934: 22",";","[email protected]",";","fn,",";"
awk: cmd. line:934: ^ invalid char '@' in expression