Concatenate Multiple Files in Bash
Posted July 5, 2022 by Rohith ‐ 1 min read
Using bash commands, it is very easy to concatenate multiple files into a single file.
Syntax:
cat {regex} > {filename}
Example:
ls # list the files in the pwd
# output
file1.json file2.json
cat *.json > file.json # file1.json and file2.json are combined into a single file from cli