Subakva Teknika

Find and Concatenate Files With Spaces

| Comments

Normally, xargs will interpret the spaces in the filenames as separate files. The -print0 argument to find paired with the -0 argument to xargs will use some other magical delimiter so that the spacey filenames remain intact as you pipe them around.

`

find ./spacey_files -name Report -type f -print0 | xargs -0 cat > all_reports.csv
`