Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 

Non-ASCII check

Danny
MVP Platinum
MVP Platinum

🛒 More SmartTasks
👍 Tested to be working with R81.20+

SmartTask to verify if a change includes non-ASCII characters.

Script code

Copy the code below into a new script 'Task_CheckNonASCII' of your SmartConsole script repository.
test `cat $1|LC_ALL=C grep -q '[^ -~]';echo $?` -eq 0 && echo '{"result":"failure","message":"Change includes forbidden non-ASCII characters."}' || echo '{"result":"success"}'

SmartTask

Create a new SmartTask in SmartConsole
...;
TO ACCESS CHECKMATES TOOLBOX it's simple and free

Disclaimer: Check Point does not provide maintenance services or technical or customer support for third party content provided on this Site, including in CheckMates Toolbox. See also our Third Party Software Disclaimer.




(1)
2 Replies

the_rock
MVP Platinum
MVP Platinum

Will have to test it once back from vacation.

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

the_rock
MVP Platinum
MVP Platinum

Works as expected!

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos