Re: removing tabs at beginning of a line
From: Bill Seivert (seivert_at_pcisys.net)
Date: 04/03/05
- Next message: Keith Thompson: "Re: variable with "-" sign"
- Previous message: Bill Seivert: "Re: removing tabs at beginning of a line"
- In reply to: Bill Seivert: "Re: removing tabs at beginning of a line"
- Next in thread: Michael Tosch: "Re: removing tabs at beginning of a line"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Keith Thompson: "Re: variable with "-" sign"
- Previous message: Bill Seivert: "Re: removing tabs at beginning of a line"
- In reply to: Bill Seivert: "Re: removing tabs at beginning of a line"
- Next in thread: Michael Tosch: "Re: removing tabs at beginning of a line"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]