--first-only
Convert only leading sequences of blanks (overrides -a).
An option of unexpandx.
Usage
unexpandx --first-only [FILE]...Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
--first-only | none | convert only leading sequences of blanks (overrides -a) |
Examples
Retab a Go file for gofmt, leaving alignment inside lines alone
unexpandx -t 4 --first-only main.goEdit with spaces, then hand the file back with tabs
expandx -t 4 a.go | unexpandx -t 4 --first-only > b.goHelp in the terminal
gnux help unexpandx --first-only