Hello there i am trying to use grep to find lines in a file and pull the full line. I have it working when looking for a small text but when i look for one that has a TAB between the lines it can not find it...
So need both the unknown type(0x134e) and 30.6511 lines to be searched but its not working
foreach $_ (@array) { @array2 = grep {$_ =~ "unknown type(0x134e) 30.6511 (V6.5.1 FP1)"} (@array); print FILE "@array2"; close(FILE);In reply to Using grep to pick out Specific lines in a text file by itguy87
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |