READING

awk ile tek tirnak kacirma (single quote in awk)

awk ile tek tirnak kacirma (single quote in awk)

Olurya bir gun awk icinde mysql girdi islemi yapmak zorunda kalirsaniz diye buraya yazayim dedim. Asagida ki ornek referans olabilir.

awk icinde tek tikrnak kacirma “‘\”” $2 “‘\””

cat logins_ | awk ‘{print “INSERT INTO `mail_log`.`login` (`logins_id`, `logins_date`, `logins_type`, `logins_email`, `logins_last`) VALUES (NULL, ” “‘\”” $2 ” ” $1 “‘\”””,” “‘\”” $4 “‘\”””,” “‘\”” $7 “‘\”””,” “NULL””);” }’


Your email address will not be published. Required fields are marked *