View Single Post
Old 10-24-2013, 08:11 AM   #4
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by Aeris View Post
Ah! I've tried only:
cd /
find light.sh

But didn't work... your code works instead, thank you!
*nix (and Linux) "find" is a much different command than ones of the same name on other operating systems.

"man find" for the details, either in a web search engine or in a full Linux/Mac installation with the man(uals) installed.

Briefly: command starting-path tests
In this case it would have been:
find / -name 'light.sh'
or, case insensitive:
find / -iname 'light.sh'
or, case insensitive, anything starting with 'light':
find / -iname 'light*'

man find
knc1 is offline   Reply With Quote