I have a directory employer/
. In this there are 5 .txt
files.
I want to combine the data from all 5 files and show into the command prompt using cat
or create another file and save the result in that file. How can I do this?
I have a directory employer/
. In this there are 5 .txt
files.
I want to combine the data from all 5 files and show into the command prompt using cat
or create another file and save the result in that file. How can I do this?
First go to
employer/
directory (usingcd /path/to/employer/
command), then use one of the following commands:or, simple:
If you want to save the output in a new file, then you can use:
If you want both, to write the output to standard output and to a new file, then you can use: