пропустить имена файлов в grep

Я собираю строку из нескольких файлов, но один нежелательный побочный эффект - это имя файла, предваряющее выход. Как я могу подавить выходы имени файла, используя только 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 Мне просто интересно, есть ли более эффективный путь, чтобы иметь тот же эффект

1
задан 25 February 2014 в 05:28

0 ответов

Другие вопросы по тегам:

Похожие вопросы: