special meaning of ^ (caret) in solaris (bourne?) sh?
问题 On Solaris, it appears I need to single quote 'a match the beginning of line' expression: > sh $ echo offset 0.000000 2>&1 | grep ^offset | tail -1 offset: not found $ Usage: grep [-c|-l|-q] [-bhinsvwx] pattern_list [file ...] grep [-c|-l|-q] [-bhinsvwx] [-e pattern_list]... [-f pattern_file]... [file...] grep -E [-c|-l|-q] [-bhinsvx] pattern_list [file ...] grep -E [-c|-l|-q] [-bhinsvx] [-e pattern_list]... [-f pattern_file]... [file...] grep -F [-c|-l|-q] [-bhinsvx] pattern_list [file ...]