Я ищу строку из нескольких файлов, но одним нежелательным побочным эффектом является имя файла перед выходом. Как я могу подавить вывод имени файла, используя только grep?
$ grep -i lp lpNet*
lpNet:This was printed via the internet using the lp command.
lpNet:I believe lp doesnt care what the device is.
lpNet1:This was printed via the internet using the lp command.
lpNet1:I believe lp doesnt care what the device is.
lpNet2:This was printed via the internet using the lp command.
lpNet2:I believe lp doesnt care what the device is.
lpNet3:This was printed via the internet using the lp command.
lpNet3:I believe lp doesnt care what the device is.
Я решил проблему, используя cat lpNet * | grep lp Мне просто интересно, есть ли более эффективный способ добиться того же эффекта