Wednesday, February 13, 2013

Grep funny issue


grep: invalid option -- t


This happens when there is a file in the local directory that has a name that starts with a “-”, for exampe “-t ” 
remove the file with: rm -i ./-t  and then grep will work  

No comments:

Post a Comment