grep -n 'sign.*context' associative_array.pl 可以查得到,bash-2.03$ grep -n '*sign.*context' associative_array.pl 查不到?
bash-2.03$ grep -n 'sign.*context' associative_array.pl
53:print "
----------------------------------assign_value_in_list_context_--------------------------
";
56:print "
----------------------------------assign_value_in_list_context_--------------------------
";
bash-2.03$ grep -n '*sign.*context' associative_array.pl
bash-2.03$
是不是因为是 Solaris 系统的原因: -n 放后面提示错误 ?