Mailinglist Archive: opensuse (2086 mails)

< Previous Next >
[opensuse] some sed-help, please
  • From: "Leen de Braal" <ldb@xxxxxxxx>
  • Date: Tue, 21 Aug 2007 10:51:05 +0200 (CEST)
  • Message-id: <4644.192.168.0.66.1187686265.squirrel@xxxxxxxxxxxxx>
Hi all,

Need some help with sed:

I have a txt file that contains some 15000 lines, where i want to bring in
some structure.
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. Beginning is
always the same, and length to delete is also always the same.

I used sed 's/^ /\t/' txtfile, but I do not get a tab. Besides, this might
do more then just the first space, I guess.

Could someone shed some more light here?



-- 
L. de Braal
BraHa Systems
NL - Terneuzen
T +31 115 649333
F +31 115 649444
-- 
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >