Wednesday, April 13, 2016

Split command output into columns

Split the output of find command in 2 columns and with width of 130 chars for each column

$ find . -type f | pr -t -2 -W 130 | less

or

$ find . -type f | paste - -

or

$ find . -type f | column

No comments:

Blog Archive