开发者

fit syntax from bash to ksh

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜