You can try this:
#!/bin/bash
while read -r line; do
date="${line:4:8}"
echo "$line" >> "${date}.txt"
done < filenames.txt
0
solved Creating text files based on list of file names [closed]
You can try this:
#!/bin/bash
while read -r line; do
date="${line:4:8}"
echo "$line" >> "${date}.txt"
done < filenames.txt
0
solved Creating text files based on list of file names [closed]