grep - only get the prefix only
I know -h
suppresses the prefix in grep
so I would only get the filename. Is there a way to only get the prefix? I do a find for files and then pass that to grep.
Finally found i开发者_StackOverflowt in the manual... -l
looks like it now works
Not a flag, but how about
dirname
dirname /usr/bin/sort
/usr/bin
精彩评论