Skip to Content
gnux

-p, --prefix

Reformat only lines beginning with STRING, reattaching the prefix to reformatted lines.

An option of fmtx.

Usage

fmtx [-WIDTH] -p STRING [FILE]...
fmtx [-WIDTH] --prefix=STRING [FILE]...

Details

ShortLongValueDefaultMeaning
-p--prefixSTRINGreformat only lines beginning with STRING, reattaching the prefix to reformatted lines

Examples

Reflow a block of shell comments after editing them

fmtx -p '#' -w 72 config.sh

Help in the terminal

gnux help fmtx --prefix

On this page