This does not work if you have a single monolithic *.sum file with all your data! (Eg. how you dowload data from the PTI archive...)

In the directory where you keep your PTI archive data, create a file called checkforstar.batx, and paste into it the following line:

grep -c $1 97/*.sum 98/*.sum 99/*.sum 100/*.sum 101/*.sum 102/*.sum 103/*.sum 104/*.sum 105/*.sum 106/*.sum | grep -v ':0'

Modify this as appropriate: for example, if your sumfile(s) is not distributed into many subdirectories (in the above case, 97/ 98/ 99/ etc.), replace that portion of the line with the appropriate subdirectory name.

When done, this command will tell you how many scans per night are found for a given star, eg:

$ ./checkforstar.batx HDC85503

will output:

103/103336.sum:24
104/104008.sum:25
104/104009.sum:21
104/104013.sum:20
104/104040.sum:15
104/104071.sum:51
104/104072.sum:30
104/104078.sum:20
104/104081.sum:20
104/104335.sum:15
104/104338.sum:15
104/104339.sum:20
104/104347.sum:20
105/105105.sum:20