I need to put the contents of all *.as files in some specified folder into one big file.
How can I do it in Linux shell?
I need to put the contents of all *.as files in some specified folder into one big file.
How can I do it in Linux shell?
If you need all files in all subdirectories, th most robust way to do this is:
rm onebigfile
find -name '*.as' -print0 | xargs -0 cat >> onebigfile
This:
A less robust but simpler solution:
cat `find -name '*.as'` > onebigfile
(The latter version doesn't handle very large numbers of files or files with weird filenames so well.)