Bash error using the column command: 'column: line too long'
You could try a naive awk implementation:
awk 'NR==FNR{for(i=1;i<=NF;i++)
max[i] = length($i) > max[i] ? length($i) : max[i]; next}
{ for(i=1;i<=NF;i++) printf "%-"max[i]"s ", $i; printf "\n"}' text.txt text.txt
An alternative is to split the line into an array.
This line is too long and column
will not print it in full:
FULLTEXT=$(cat /Users/burroughclarke/Desktop/commaseperatedvalues.csv)
printf "$FULLTEXT" | column -t -s ','
This prints it properly:
readarray -t ARR < <(cat /Users/burroughclarke/Desktop/commaseperatedvalues.csv | tr "\n" "\n")
printf '%s\n' "${ARR[@]}" | column -t -s ','