Re: removing tabs at beginning of a line

From: Bill Seivert (seivert_at_pcisys.net)
Date: 04/03/05


Date: Sun, 03 Apr 2005 15:17:04 -0600


Bill Seivert wrote: (incorrectly the first time)
>
> ifconfig | sed "s/ //"
>
> The space between the first and second slashes is hitting the
> "tab" key (just left of the "Q") once.
> Add a "g" after the third slash if you want all slashes on each
                                                    tabs

> line removed.
>
> Bill Seivert
>

To only remove one leading tab on each line use
ifconfig | sed "s/^ //"

To remove multiple leading tabs on each line use
ifconfig | sed "s/^ *//"

Bill Seivert