我想grep以字符串开头的短划线连字符,比如-X在文件中,但是这会让它混淆为命令行参数.
-X
我试过了:
grep "-X" grep \-X grep '-X'
unix grep escaping
escaping ×1
grep ×1
unix ×1