look — display lines beginning with a given stringwhich means that, for example, this command:
look what fileis equivalent to this command (with the exception that look ignores all whitespace characters at start):
grep '^what' fileWith this in mind, we can search easily for comment lines in all javascript files:
look '//' *.jsor in .bashrc
look '#' ~/.bashrcFor more, there is always grep, of course. Visit The Light of the LAMP blog for more...
Διαβάστε όλο το άρθρο στο "The light of the LAMP" »
Μεταφράστε αυτό το άρθρο (Translate this article) »
