linux - Cat several thousand files -


i have several(60,000) files in folder need combined 3 separate files. how cat have each file containing contents of ~20,000 of these files?

i know loop:

for in {1..20000} cat file-$i > new_file_part_1 done 

doing:

cat file-$i > new_file_part_1 

will truncate new_file_part_1 every time loop iterates. want append file:

cat file-$i >> new_file_part_1 

Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -