I have files in different directories under a parent directory, something like this:
- Parent Dir
- Dir 1 - File 1
- Dir 2 - File 2
I want to have an output file that appends the content of File1 with File2. How do I do it in Bash?
I have files in different directories under a parent directory, something like this:
I want to have an output file that appends the content of File1 with File2. How do I do it in Bash?
Converting my comment to an answer. You can use following find + xargs
pipeline command:
cd /parent/dir
find home -name "*.orc" -print0 | xargs -0 cat > test.orc