Indent

line_indent

Indent each line of input by n spaces (default: 2). Reads from a file path or stdin.

Arguments

  • $1 (int): Optional: number of spaces to indent (default: 2)
  • $2 (string): Optional: file path (default: stdin)

Exit codes

  • 0: Always

Output on stdout

  • Indented text

indent

Alias for line_indent.

str_indent

Alias for line_indent.

text_indent

Alias for line_indent.