create multiple files from list

Associate
Joined
18 Sep 2003
Posts
2,368
Is there an easy batch method of creating a large number of files from a text list? for example if I have:


bike
hike
vike
like




I want the corresponding html files
bike.html
hike.html
vike.html
like.html



Cheers
 
Windows NT/2000/XP cmd.exe shell :
for /f %i in ('type list.txt') do set 1>null 2>%i.html

- which is a hacky way to do the UNIX equivalent :
for i in `cat list.txt`;do touch $i.html;done

Windows 9x, no clue.
 
matja said:
Windows NT/2000/XP cmd.exe shell :
for /f %i in ('type list.txt') do set 1>null 2>%i.html

- which is a hacky way to do the UNIX equivalent :
for i in `cat list.txt`;do touch $i.html;done

Windows 9x, no clue.

thanks for your help, worked a treat :)
 
Back
Top Bottom