I am using bashcat
to join several files into one, since there are more than a thousand folders, I do not want to make an instruction for each folder, how can I make a cycle so that it can go through all the folders and the files of the respective folders are joined.
What I do to join the files is the following code:
cat /media/user/PENDRIVE/test/0b8/2014322/2014322_0b8*.msd > /media/user/PENDRIVE/test/0b8/2014322/2014322_0b8.msd
cat /media/user/PENDRIVE/test/0b8/2014323/2014323_0b8*.msd > /media/user/PENDRIVE/test/0b8/2014323/2014323_0b8.msd
cat /media/user/PENDRIVE/test/0b8/2014324/2014324_0b8*.msd > /media/user/PENDRIVE/test/0b8/2014324/2014324_0b8.msd
How could I do it?