in reply to File search using Grep
Better read the file line by line:
perl -e ' open(FILE, '<','/tmp/Config1'); while(<FILE>){ print if /9344151299/i }; close FILE; ' # Or perl -ne 'print if /9344151299/i' /tmp/Config1
hth,
PooLpi
'Ebry haffa hoe hab im tik a bush'.
Jamaican proverb
Update: -options and second solutionAn error has occurred. The site administrators have been notified of the problem and will likely soon fix it. We thank you, for you're patients.
Replies are listed 'Best First'. | |
---|---|
Re^2: File search using Grep
by johngg (Canon) on Jun 26, 2009 at 10:20 UTC | |
by Anonymous Monk on Jun 26, 2009 at 14:35 UTC | |
by zwon (Abbot) on Jun 26, 2009 at 19:20 UTC | |
by mzedeler (Pilgrim) on Jun 27, 2009 at 19:28 UTC |
In Section
Seekers of Perl Wisdom