-3

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?

shashank
  • 326
  • 4
  • 6
  • 19

1 Answers1

0

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 
anubhava
  • 761,203
  • 64
  • 569
  • 643
  • The question seem like a dup of [Concatenating multiple text files into a single file in Bash](https://stackoverflow.com/q/2150614/608639). – jww Mar 07 '18 at 13:23