Run one task that splits into an unknown number of other tasks, then merge the results of these tasks again using one task
-
Split “elatyriaf.txt” into separate files .txt files.
-
Reverse characters in each file and save
-
Concatenate the reverse files into “fairytale.txt”
Example in bash:
mkdir split
split elatyriaf.txt -l 1 split/
for f in split/*
do
rev $f > ${f}2
done
cat split/*2 > fairytale.txt