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
Post a Comment