N
N
nonbody2020-10-04 14:21:34
linux
nonbody, 2020-10-04 14:21:34

How do I get the name of a file to be displayed when using cat?

How can I make the file name appear at the beginning?

cat *access.log | grep POST

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
neol, 2020-10-04
@nonbody

grep -H POST *access.log

D
Dmitry, 2020-10-04
@q2digger

grep -iwr POST *.access.log

L
Lynn "Coffee Man", 2020-10-04
@Lynn

grep POST *access.log

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question