Don't display filenames along with the contents when using "more"

0

While displaying more than one file with more, I don't want to display filenames along with the contents.

I only need to display the contents of the file. Is there any way to escape the filenames?

raju

Posted 2012-04-10T06:39:23.690

Reputation:

Answers

2

Trivial

cat file1 file2 file3 ... filen | more

Ex Umbris

Posted 2012-04-10T06:39:23.690

Reputation: 928

2http://partmaps.org/era/unix/award.html Useless use of cat award! – Rob – 2012-04-10T12:36:42.977

1@Rob Really? cat concatenates the files. What else do you suggest? – slhck – 2012-04-10T13:48:41.223

I don't know how I missed the "Don't display filenames". I think I opened it in a new tab, forgot about it, came back to it and skimmed. – Rob – 2012-04-10T15:05:31.000

1

cat file1 file2 | more

This is what you are looking for.

nims

Posted 2012-04-10T06:39:23.690

Reputation: 246

http://partmaps.org/era/unix/award.html Useless use of cat award! – Rob – 2012-04-10T12:36:32.023

I don't know how I missed the "Don't display filenames". I think I opened it in a new tab, forgot about it, came back to it and skimmed. – Rob – 2012-04-10T15:05:23.390

-1

more "filename with space" "filenames" filename\ also\ with\ spaces and.one.more.file is all you need, but you might consider using less instead of more. They say less is more.

Rob

Posted 2012-04-10T06:39:23.690

Reputation: 2 152

1That is not his question. – Daniel Andersson – 2012-04-10T12:45:44.167

+1 for suggesting the right tool for the job. Especially when the tool is as widespread as less. – l0b0 – 2012-04-10T12:49:11.997

Missed the "Don't want to display filename" in the question. Not sure how. – Rob – 2012-04-10T14:42:30.920