File processing

Hi,

i have multiple files in a Input directory Say eg: 50 files. I want to process all the fifty files and put it in 5 different files (basically each 5 file contain 10 10 files data total of fifty files).
Is there any script available. pls help.

I tried using the for loop,
eg:

cat *.txt >> all.txt

Thanks in Advance.

Welcome to the forum.

Please be aware that you provided way too little context information to allow people to come up with a meaningful proposal.

  • What be your OS & shell versions?
  • Any condition(s) by which files will be assigned to a target file?
  • Any limitations on the target files?
  • Any preferred tools?