format output as a table
echo -e name age"\n"nickollas 30 | column -t
format first column with 2 places and third column with comma and 7 places
ls -ld /etc/h* | awk '{ printf( "%2s %s %7d %s\n", $(NF-2),$(NF-3),$(NF-4),$NF ) }'
format output as a table
echo -e name age"\n"nickollas 30 | column -t
format first column with 2 places and third column with comma and 7 places
ls -ld /etc/h* | awk '{ printf( "%2s %s %7d %s\n", $(NF-2),$(NF-3),$(NF-4),$NF ) }'