# mysql dbname -B -N -e "SELECT serial FROM serials" >/path/to/outfile
-B or –batch: prints rows tab-separated and turns off the borders
-N or –skip-column-names: leaves out the header row
# mysql dbname -B -N -e "SELECT serial FROM serials" >/path/to/outfile
-B or –batch: prints rows tab-separated and turns off the borders
-N or –skip-column-names: leaves out the header row