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?
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?
2
Trivial
cat file1 file2 file3 ... filen | more
1
cat file1 file2 | more
This is what you are looking for.
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.
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
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.223I 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