View Single Post
Old Jul 5th, 2005, 12:14 PM   #1
Wejmok Chorg
Newbie
 
Join Date: Jul 2005
Posts: 1
Rep Power: 0 Wejmok Chorg is on a distinguished road
Please Help Newbie

Hello,

I have a log file, which I want to use as a word list. Problem is, there's no space between the words and the numbers to which the words are linked.

For instance, I need to change

called20:12,18

to

called 20:12,18

by adding a space between the words and the numbers.

sed's info file tells me that replace-strings get interpreted litterally on the right hand side.

Thus, as info telle me, sed s/[a-zA-Z][0-9]/[a-z][A-Z]\ \[0-9]/g testfile produces "calle[a-z][A-Z] [0-9]0:12,18"

Can someone tell me how I can search my file for all instances of letter-then-number, and replace them with letter-then-space-then-number?

Thank you very much.
Wejmok Chorg is offline   Reply With Quote