Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!mit-eddie!uw-beaver!rice!sun-spots-request From: gfr@cobra.mitre.org (Glenn Roberts) Newsgroups: comp.sys.sun Subject: When is a 3-1/2" 'bar' floppy full? Keywords: 386i Message-ID: <8904271345.AA01322@cobra.mitre.org> Date: 5 May 89 07:12:13 GMT Sender: usenet@rice.edu Organization: Sun-Spots Lines: 37 Approved: Sun-Spots@rice.edu Original-Date: Thu, 27 Apr 89 09:45:43 EDT X-Sun-Spots-Digest: Volume 7, Issue 265, message 9 of 9 I'm trying to find a way to reliably determine when a 3-1/2" floppy is nearly full (using 'bar' with the Z compression option). When the floppy fills up, 'bar' will prompt for you to pop in a second disk. I took such a "full" disk and used an awk program to add up the block counts (the file 'disk1' contains the output from the bar command that wrote to the disk): {cobra:36} awk '{sum+=$3} END { print sum}'