linux - Searching standard commands for a string -
i'm trying list standard commands contain string. i'm told echo $path help i'm not sure how... advice? in advance!
try this:
find `echo $path | tr : ' ' ` | grep foo
where "foo" string you're interested in.
and if want ignore case, utilize -i
flag grep
:
find `echo $path | tr : ' ' ` | grep -i foo
linux unix
No comments:
Post a Comment