I was printing out the sizes of different databases and trying to sum them. The command I was using was:
This prints out a two column list of files sizes and file names. I wanted to turn this into a csv. What is the best way to do this? AWK of course.
AWK to the Rescue
This print just the file sizes:
This prints the file name first, comma, file size:
You can either cut and paste the output into a spread sheet or redirect it into a csv like so: