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:
but gives me lines of code have active in... when there 20 plus files, doesn't help...code:cat *.php | grep active
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
Post a Comment