in reply to grep return the entire file not the line which matches

Maybe this short line enlightens you:

$ perl -wle '$en = EN-1000-0003-3; print $en' Argument "EN" isn't numeric in subtraction (-) at -e line 1. -1006

If not, read perlintro.

Replies are listed 'Best First'.
Re^2: grep return the entire file not the line which matches
by vikashiiitdm (Novice) on Aug 03, 2011 at 17:04 UTC

    sir, thatz not substraction .. actually i forgot to add the quotes around it.please sir, see my updates post and give ur valuable comments

      Never re-type the code, always use copy&paste when presenting it to others. A single character often makes the difference between a working and a broken program.

      Where's this update you speak of?