> Am Dienstag, 21. August 2007 schrieb Leen de Braal:
>> First is to replace the first (only the first) space in the line with a
>> <TAB>.
>> After that I want to delete a given number of characters that always
>> begin
>> with the same sequence, but may have different contents.
>
> sed 's/^ /\t/;s/beginning.\{n\}//'
>
> works for me, where "beginning" ist the beginning sequence and n is the
> given
> number of characters minus the length of "beginning".
>

Tried it, works! Thanks.

>> I used sed 's/^ /\t/' txtfile, but I do not get a tab.
>
> That works for me.

I was wrong, is a tab here too. I overlooked it because next tabstop was
exactly 1 space away.

>
>> Besides, this might
>> do more then just the first space, I guess.
>
> No, 's/ /\t/g' would do so.

Ok, thats good.

> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
L. de Braal
BraHa Systems
NL - Terneuzen
T +31 115 649333
F +31 115 649444
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to