21 Aug
2007
21 Aug
'07
10:03
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".
I used sed 's/^ /\t/' txtfile, but I do not get a tab.
That works for me.
Besides, this might do more then just the first space, I guess.
No, 's/ /\t/g' would do so. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org