Well, you'll need to specify spaces [red]or tabs[/red] in the sed commands like so
[tt]sed 's!^[ (tab)]*!!;'[/tt]
and so on. Substitute [tt]" *"[/tt] with "[tt][ (tab)]*[/tt]" in PHV's example. For sed, you'll need to type the tab character literally as it doesn't understand \t.
[xyz]* means any number of the characters inside the brackets
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.