skip to Main Content

Centos – sed can’t handle emojis

#!/bin/sh emoji="U1f300-U1f5ffU1f900-U1f9ffU1f600-U1f64fU1f680-U1f6ffU2600-U26ffU2700-U27bfU1f1e6-U1f1ffU1f191-U1f251U1f004U1f0cfU1f170-U1f171U1f17e-U1f17fU1f18eU3030U2b50U2b55U2934-U2935U2b05-U2b07U2b1b-U2b1cU3297U3299U303dU00a9U00aeU2122U23f3U24c2U23e9-U23efU25b6U23f8-U23fa" sample="This 🍒 is ⭐ a 🐢 line 🤮 of 😃 emoji ✈" echo $sample echo $sample | LC_ALL=UTF-8 sed -e "s/[$(printf $emoji)]//g" The preceding script can obtain normal execution results on other Linux operating systems (such as centos).…

VIEW QUESTION

How to call a Perl script with couple of arguments with html tag from within a Python script using Subprocess/shell? HTML tagging not working

Within a python script I have a function which looks as below: def NotifierFunc(Mail, Ticket_Num, Open_DtTime): cmd = "/home/path/MyPerlScript.pl --channel 'MyChannel' --userid 'itsme' --message 'Hello <at>"+Mail+"<at> : The ticket <a href='`echo 'http://snview/'"+Ticket_Num+">`echo "+Ticket_Num+"`</a> is not closed for more than 72…

VIEW QUESTION
Back To Top
Search