Skip to main content

Thread: Silly question - cat with grep


i've been using linux command line years, have never worked out how following:

- i'm trying find files (in case php) single word in it... e.g. active (in case i'm changing database structure link , trying find references phrase "active"....

use:
code:
cat *.php | grep active
but gives me lines of code have active in... when there 20 plus files, doesn't help...

there way of getting output include name of file line of code?

simple question, ain't got clue how it?!!!!

cheers
nunners

grep -h active *.php


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [all variants] Silly question - cat with grep


Ubuntu

Comments

Popular posts from this blog

Christian Home School Programs - Joomla! Forum - community, help and support

Typo in documentation

captcha in coldfusion MX