csvkitincludes tool csvlook(as well csvformat):
Enter
cat <<EOF | csvlook
2012-05-02,palani,My first comment
2012-05-02,raja,My second comment
2012-05-02,palani,My third comment
2012-05-03,raja,My fourth comment
EOF
Output
| 2012-05-02 | palani | My first comment |
| ---------- | ------ | ----------------- |
| 2012-05-02 | raja | My second comment |
| 2012-05-02 | palani | My third comment |
| 2012-05-03 | raja | My fourth comment |
source
share