Hello, please how can i extract an Linux command out of e-mail message? I sent an e-mail with this text: and in the received e-mail file is: The e-mail encoding is: Content-Type: multipart/alternative Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Please which example command can i use to extract that Linux command out of the mail file not knowing which command the file will contain, only knowing that the command will be after string "cmd: " ? I am able to extract alphanumeric string, but i do not know how to do what i explained. Thank You
I think this would be quite difficult awk or sed command/s, so i think i will rather make sure e-mail is sent without any special html formating (as a plain text), that way the command seems to remain same as it was typed.
I think this would be quite difficult awk or sed command/s, so i think i will rather make sure e-mail is sent without any special html formating (as a plain text), that way the command seems to remain same as it was typed.