I have have a text file with many lines like this:
Smith: ''Handbook of Everything.'' Fantasy Press, 2000.
Wilson: ''Unix for Dummies.'' Wiley, 1993.
I want to write every line into a new file. The new file should contain the whole line and should be named same to the line it contains.
Smith: ''Handbook of Everything.'' Fantasy Press, 2000.txt
Wilson: ''Unix for Dummies.'' Wiley, 1993.txt
How do I accomplish this? Thanks.