On Tuesday 21 August 2007 01:51, Leen de Braal wrote: > Hi all, > > Need some help with sed: > > ... > > 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.
Assuming you're using bash, you need to use the $'string literal with \t escapes' notation. The dollar sign and single quote marks enable the backslash escapes. If you want to use a newline, it needs to be preceded by a backslash, which will then need to be double, so a newline in a $'...' string will look like $'... \\\n ...' > Could someone shed some more light here? > > -- > L. de Braal Randall Schulz -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
