I have four files:
one_file.txt
abc | def
two_file.txt
ghi | jkl
three_file.txt
m
You can use one line for loop for this. The following line:
for
for f in *_file.txt; do (cat "${f}") >> full_set.txt; done
Yields the desired output:
$ cat full_set.txt abc | def mno | pqr ghi | jkl
Also, possible duplicate.