|
From: David L. <da...@la...> - 2015-03-09 23:14:46
|
On Tue, 10 Mar 2015, Dave Horsfall wrote: > On Mon, 9 Mar 2015, David Lang wrote: > >> linecount = "`cut -f 1 -d '|' site_summary.data |uniq| sed s/$/' '/ |wc -l`" > > Just a minor point: "uniq" works best with sorted input (or use "sort > -u"). And why are you appending a blank to each line? both items are leftovers from prior work. if I didn't have the wc at the end of this and just output the first element on each line, gnuplot would disregard the newline and run them all together into one string, adding a space on the end of each line avoids this. In my case, the data is already sorted by the SQL, so I wouldn't need to sort it again (although in the case of creating the pie charts, it's only one line per datacenter, so the uniq and the sed are not needed. As I said, leftovers from prior work) David Lang |