Skip to Content
gnux

--first-only

Convert only leading sequences of blanks (overrides -a).

An option of unexpandx.

Usage

unexpandx --first-only [FILE]...

Details

ShortLongValueDefaultMeaning
--first-onlynoneconvert 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.go

Edit with spaces, then hand the file back with tabs

expandx -t 4 a.go | unexpandx -t 4 --first-only > b.go

Help in the terminal

gnux help unexpandx --first-only

On this page