Getting file sizes

2007-10-22 Thread Kent Johnson
Newbie question: How can I get the total size, in K, of all files in a directory that match a pattern? For example, I have a dir with ~5000 files, I would like to know the total size of the ~1000 files matching *.txt. On RHEL and bash, if it matters... Thanks, Kent

Re: Getting file sizes

2007-10-22 Thread Stephen Ryan
On Mon, 2007-10-22 at 09:11 -0400, Kent Johnson wrote: Newbie question: How can I get the total size, in K, of all files in a directory that match a pattern? For example, I have a dir with ~5000 files, I would like to know the total size of the ~1000 files matching *.txt. du -c *.txt

Re: Getting file sizes

2007-10-22 Thread Jim Kuzdrall
On Monday 22 October 2007 09:11, Kent Johnson wrote: Newbie question: How can I get the total size, in K, of all files in a directory that match a pattern? For example, I have a dir with ~5000 files, I would like to know the total size of the ~1000 files matching *.txt. Ah! Perhaps I

Re: Getting file sizes

2007-10-22 Thread Michael ODonnell
More than you asked for, but here's a command that reports total space occupied by all files with names ending in .jpg, recursively from the current directory (but not crossing mount points) and which is also a gratuitous example of the Process Substitution facility mentioned in a previous

Re: Getting file sizes

2007-10-22 Thread Ted Roche
Kent Johnson wrote: Newbie question: How can I get the total size, in K, of all files in a directory that match a pattern? For example, I have a dir with ~5000 files, I would like to know the total size of the ~1000 files matching *.txt. On RHEL and bash, if it matters... Thanks,

Re: Getting file sizes

2007-10-22 Thread Kent Johnson
Jim Kuzdrall wrote: On Monday 22 October 2007 09:11, Kent Johnson wrote: How can I get the total size, in K, of all files in a directory that match a pattern? For example, I have a dir with ~5000 files, I would like to know the total size of the ~1000 files matching *.txt. Ah!

Re: Getting file sizes

2007-10-22 Thread Michael ODonnell
Ooops - that --files0-from= option is apparently new enough (my du version is 5.97) that it's probably not widely available. My home system has it, but my work systems don't... -/ ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org

Re: Getting file sizes

2007-10-22 Thread Paul Lussier
Kent Johnson [EMAIL PROTECTED] writes: Newbie question: How can I get the total size, in K, of all files in a directory that match a pattern? Stephen Ryan [EMAIL PROTECTED] writes: du -c *.txt | tail -1 du prints out the sizes of each of the matching files; '-c' means you want a total,

Re: Getting file sizes

2007-10-22 Thread Shawn K. O'Shea
On 10/22/07, Stephen Ryan [EMAIL PROTECTED] wrote: On Mon, 2007-10-22 at 09:11 -0400, Kent Johnson wrote: Newbie question: How can I get the total size, in K, of all files in a directory that match a pattern? For example, I have a dir with ~5000 files, I would like to know the total

Re: Getting file sizes

2007-10-22 Thread Michael ODonnell
Hmm, again, certainly not my fist instinct :) Paul, we embrace diversity here but that is *definitely* OT... ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/

Re: Getting file sizes

2007-10-22 Thread Jim Kuzdrall
On Monday 22 October 2007 09:36, Kent Johnson wrote: Jim Kuzdrall wrote: On Monday 22 October 2007 09:11, Kent Johnson wrote: How can I get the total size, in K, of all files in a directory that match a pattern? For example, I have a dir with ~5000 files, I would like to know the

Re: Getting file sizes

2007-10-22 Thread Ben Scott
On 10/22/07, Shawn K. O'Shea [EMAIL PROTECTED] wrote: Since I know Kent has a Mac and this might be on his laptop, I'd like to add that this should really be: du -ck *.txt | tail -1 Since we're on the subject, it should also be noted that du means *disk usage*. That means du is supposed to

Re: Getting file sizes

2007-10-22 Thread Kent Johnson
Shawn K. O'Shea wrote: du -c *.txt | tail -1 Since I know Kent has a Mac and this might be on his laptop, I'd like to add that this should really be: du -ck *.txt | tail -1 No, this is a bona fide Linux question :-) it's a Webfaction account. But thanks for the note! Kent

Re: Getting file sizes

2007-10-22 Thread Ben Scott
On 10/22/07, Michael ODonnell [EMAIL PROTECTED] wrote: Ooops - that --files0-from= option is apparently new enough ... that it's probably not widely available. find . -xdev -type f -name *.jpg -print0 2/dev/null | xargs -0 du -ch | tail -1 (untested) -- Ben

Brother, can you spare a couple of SCSI SCA disks?

2007-10-22 Thread Ben Scott
Hello, world! GNHLUG has an Internet server (it runs this list, amongst other things). It has a pair of 18 GB disks (mirrored). That is kind of small, by today's standards -- especially if we want to start doing things like hosting videos of meetings. It was pointed out that we might have

Re: Getting file sizes

2007-10-22 Thread Steven W. Orr
On Monday, Oct 22nd 2007 at 10:17 -, quoth Ben Scott: =On 10/22/07, Shawn K. O'Shea [EMAIL PROTECTED] wrote: = Since I know Kent has a Mac and this might be on his laptop, I'd like = to add that this should really be: = du -ck *.txt | tail -1 = = Since we're on the subject, it should also be

Re: Brother, can you spare a couple of SCSI SCA disks?

2007-10-22 Thread Star
The one wrinkle is that they must be 3.5-inch, 1/3-height, SCSI, 80-pin SCA (single connector attachment) disks. That's all that will fit the 1U server we have. I have a pair of Seagate 36g that I believe fit the bill here, though their size is also nuthin' to write home about... --

Re: Brother, can you spare a couple of SCSI SCA disks?

2007-10-22 Thread Ben Scott
On 10/22/07, Star [EMAIL PROTECTED] wrote: The one wrinkle is that they must be 3.5-inch, 1/3-height, SCSI, I have a pair of Seagate 36g that I believe fit the bill here, though their size is also nuthin' to write home about... That would still be twice what we have now. So if you're

Re: Brother, can you spare a couple of SCSI SCA disks?

2007-10-22 Thread Star
That would still be twice what we have now. So if you're willing to part with them for a price we can afford (i.e., free), that would be *sweet*. I'd be willing to let 'em go for Fifty Nothings apiece, me thinks... I'll double-check 'em tonight to make sure that they're the correct

Re: Brother, can you spare a couple of SCSI SCA disks?

2007-10-22 Thread Tom Buskey
On 10/22/07, Ben Scott [EMAIL PROTECTED] wrote: On 10/22/07, Star [EMAIL PROTECTED] wrote: The one wrinkle is that they must be 3.5-inch, 1/3-height, SCSI, What kind of hardware are these? Linux x86? SCA SCSI is kind of rare on x86 and bang/buck is low. If it's an option, how about a

Re: Brother, can you spare a couple of SCSI SCA disks?

2007-10-22 Thread Ben Scott
On 10/22/07, Tom Buskey [EMAIL PROTECTED] wrote: What kind of hardware are these? Linux x86? Linux x86. Actually, the hardware is x86 no matter what OS is running on it. ;-) Gory details are available: http://wiki.gnhlug.org/twiki2/bin/view/Organizational/ServerHardware SCA SCSI is

Re: Brother, can you spare a couple of SCSI SCA disks?

2007-10-22 Thread Tom Buskey
On 10/22/07, Ben Scott [EMAIL PROTECTED] wrote: SCA SCSI is kind of rare on x86 ... If you say so. I've been getting SCA on most of my x86 servers for something close to a decade now. :) I suppose if you compare vs the entire population of x86 boxes, including $200 Wal-Mart specials,

Re: You really never need any other application...

2007-10-22 Thread Kevin D. Clark
Paul Lussier [EMAIL PROTECTED] writes: http://1010.co.uk/gneve.html Because, really, why would you *want* to? I wonder when we'll be able to save clips to the kill ring? --kevin -- GnuPG ID: B280F24E God, I loved that Pontiac. alumni.unh.edu!kdc -- Tom Waits

Re: Brother, can you spare a couple of SCSI SCA disks?

2007-10-22 Thread Ben Scott
On 10/22/07, Tom Buskey [EMAIL PROTECTED] wrote: The only place I'd seen SCA is on Sun boxes Yah, we pee cee weenies have SCA too. ;-) Needs to be rack mounted then. Needs is a strong word, but MV Communications has been generously hosting us for free, and the fact that it only takes up

Re: Brother, can you spare a couple of SCSI SCA disks?

2007-10-22 Thread Brian
Hmm, I always thought it was power, not space. Datacenter space varies wildly, but use $20/sqft/mo. A typical cabinet will take about 17sqft on average (that's not actual footprint, but allowing for aisleways, etc). So, $240/mo for the space. A 42U cabinet will generally hold about 35U of

Re: Brother, can you spare a couple of SCSI SCA disks?

2007-10-22 Thread Ben Scott
On 10/22/07, Brian [EMAIL PROTECTED] wrote: Hmm, I always thought it was power, not space. many != all != most -- Ben ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/

Re: Brother, can you spare a couple of SCSI SCA disks?

2007-10-22 Thread Tom Buskey
On 10/22/07, Ben Scott [EMAIL PROTECTED] wrote: On 10/22/07, Tom Buskey [EMAIL PROTECTED] wrote: The only place I'd seen SCA is on Sun boxes Yah, we pee cee weenies have SCA too. ;-) As I should have said, I haven't looked into enough PCs :-) Needs to be rack mounted then. Needs is

Re: Brother, can you spare a couple of SCSI SCA disks?

2007-10-22 Thread Brian
OK. I've never seen a single datacenter where you were paying for space above anything else. Even if that's the unit of measure being sold. On Oct 22, 2007, at 5:08 PM, Ben Scott wrote: On 10/22/07, Brian [EMAIL PROTECTED] wrote: Hmm, I always thought it was power, not space. many !=

Re: Brother, can you spare a couple of SCSI SCA disks?

2007-10-22 Thread Ben Scott
On 10/22/07, Tom Buskey [EMAIL PROTECTED] wrote: Needs to look fairly decent and not take up lots of space. Pretty much. Well, really, needs to not take lots of space, power, or bandwidth. SATA is inherently hot plug. 2) power off the drive case Just to be a wise-ass: In the above,

Re: Brother, can you spare a couple of SCSI SCA disks?

2007-10-22 Thread mike ledoux
On Mon, Oct 22, 2007 at 04:17:07PM -0400, Ben Scott wrote: If somebody wants to donate sweet new 1U server with dual 500 GB SATA disks, that's fine too ;-) Not new, and not really all that sweet, but I have a couple of old (PIII-era) 1U servers that I'd be willing to donate to the cause.

Re: Brother, can you spare a couple of SCSI SCA disks?

2007-10-22 Thread Tom Buskey
On 10/22/07, Ben Scott [EMAIL PROTECTED] wrote: On 10/22/07, Tom Buskey [EMAIL PROTECTED] wrote: Needs to look fairly decent and not take up lots of space. Pretty much. Well, really, needs to not take lots of space, power, or bandwidth. SATA is inherently hot plug. 2) power off

[GNHLUG] PySIG this Thursday - Beautiful Soup - HTML scraping; actual code developed before your eyes

2007-10-22 Thread Bill Sconce
PySIGManchester, NH 25 October 2007 Kent Johnson: Beautiful Soup Us Ourselves: Python in Action

Re: Brother, can you spare a couple of SCSI SCA disks?

2007-10-22 Thread Star
Bugger! My drives are not the 80-pin connectors :( Anyone else? -- ~ * ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/

Re: Brother, can you spare a couple of SCSI SCA disks?

2007-10-22 Thread Ben Scott
On 10/22/07, Tom Buskey [EMAIL PROTECTED] wrote: 2) power off the drive case Just to be a wise-ass: In the above, there's a small wrinkle in your hot plug scenario... ;-) Maybe I'm using the term wrong. What I mean is you can plug the SATA drive into the system while the system is