开发者

fit syntax from bash to ksh

开发者 https://www.devze.com 2023-01-13 07:59 出处:网络
the following syntax work in bash but bot work on ksh script [[ \" $LINE_FROM_FILE \" == *[![:alnum:]]Validation[![:alnum:]]* ]] && print \"find Validation word\"

the following syntax work in bash but bot work on ksh script

   [[ " $LINE_FROM_FILE " == *[![:alnum:]]Validation[![:alnum:]]* ]] && print "find Validation word" 

can someone have idea how to change the syntax in order to fit also ksh script

remark: the target of this syntax to verify if Validation word exist in $LINE_FROM_FILE

    example: LINE开发者_JAVA百科_FROM_FILE=" file dir Validation 1283474"


The problem is on my Linux machine Maybe ksh version not higher enough , on other update Linux machine is work file lidia

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号