How to parse POST data in a CGI script with BASH scripting? [closed]
I Have a cgi script written with bash and i have to read a POST variable sent to this file. I am not good at bash scripting so i really n开发者_运维技巧eed this help.
From a php script I send a POST variable named log_message to this cgi but i don't know how to parse the POST var from the header.
Any help?
those seds should all have a g
, as in:
sed 's/whatever/whatever/**g**'
otherwise it stops after the first replace, which is not generally the desired behaviour.
精彩评论