3 ms·
I generally use something like: expand -t "$tabWidth" "${files[@]}" | nl -b a | fold -s -w 108 | $PAGER when I want to view files that use tabs; this is t
by barrkel 17y ago
I generally use something like:
expand -t "$tabWidth" "${files[@]}" | nl -b a | fold -s -w 108 | $PAGER
when I want to view files that use tabs; this is the final one-liner in a script I call 'view'. It gives me tabs expanded to width I specify (defaults 4), numbered lines, and long lines wrapped at word breaks but such that they don't break line numbering.