Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
[gray]# wrong[/gray]
[navy]$group_type[/navy] [teal]=[/teal] [green][i]"PLT01"[/i][/green]
[gray]# correct[/gray]
group_type[teal]=[/teal][green][i]"PLT01"[/i][/green]
group_type="PLT01"
[ `echo $group_type|grep "^PLT"|wc -l` -gt 0 ] && print "Success"
[/code
[3eyes]
----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
Correct. But I think neither the OP intended that, it looks more like pattern, which is Ok :LKBrwnDBA said:The "==" in the "if" statement does not recognize regular expressions.
man ksh88 said:[tt]string = pattern
True, if string matches pattern.[/tt]
man ksh93 said:[tt]string = pattern
Same as == above, but is obsolete.[/tt]