Only one word in the first line of text.

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
beric
Posts: 3
Joined: Mon May 02, 2011 10:59 am

Only one word in the first line of text.

Post by beric »

I have a problem. Now I have hundreds of large files that look like this:

word1 word2 word3 word4 word5
word1 word2 word3 word4 word5
word1 word2 word3 word4 word5
word1 word2 word3 word4 word5
.....

(Some files starts with a blank line...)

The first line of each file is the name of the HTML file. There can be only one word and no spaces. How do I change all the documents that the first line was only the first word of whole text? :

word1
word2 word3 word4 word5
word1 word2 word3 word4 word5
word1 word2 word3 word4 word5
word1 word2 word3 word4 word5
Post Reply