Hi monks, I would like to know can I use grep (with other function) to mimic the GNU grep -n, which return the array index as line number with or without the content?
Also, when matching a string with fixed strings, which one will be faster?
1. GNU grep -F (or fgrep) called from perl (via system() or backticks)
2. perl grep()
Thank you.
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |