Leen de Braal wrote: > 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?
Something like: sed 's/\s/\t/' test-file | sed 's/pattern......//' Cheers, Dave -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
