trim - Convenient line trimmer with sane defaults



§ Quick start

    $ go install sogvin.com/cmd/trim@latest
    $ trim -h
    Usage: trim [OPTIONS]
    
    Options
        -c, --columns : 72
        -s, --suffix : "..."
        -t, --tab-width : 4
            number of spaces
        
        -l, --path-length : 20
            trim paths to length
            0 means no trimming and min length is 6
        
        -h, --help


trim trims lines on stdin, e.g.

    $ cat testdata/example.txt | trim


§ Features

1. Trim by specific column
2. Indicate trim with suffix
3. Replace tabs with spaces
4. Replace $HOME/path with ~/path
5. Shorten paths