I'm creating new file for every line of text in a .txt file
file=/tmp/textFile.txt
while IFS= read -r line
do
printf "%s\n" "$line" > /tmp/"$line"txt
done < "$file"
I always get an error saying titlefile name too long, is there anyway to shorten the title for the new files to a certain number of characters?