Re: du suggestion

2004-06-20 Thread Richard Dawe
Hello. Tim Newsham wrote: Would be nice if DU could print out the cost of the storage rather than the number of blocks. The following code shows an example of this (option -$ reads a cost from /usr/share/du-cost and applies it before printout out the result). Haha. Nice idea. I can think of a coup

Re: DU and hard links

2004-03-27 Thread Jim Meyering
Anthony Thyssen <[EMAIL PROTECTED]> wrote: > I have a series of backup home directories what use hardlinks on files > that have not changed. If I run "du" on these directories I get > a disk usage summery as if the directories are not hard linked together! > > How can I get real disk usage summer

Re: du and wc should be able to read arguments from a file

2003-09-20 Thread Dave Gotwisner
Richard Dawe wrote: > Hello. > > Dave Gotwisner wrote: > [snip] > > Rather than assume it just takes a list of files, I would suggest strongly > > that whoever chooses to implement this (if anyone does), they also allow > > it to take other options as part of the file. > > Literally, they should r

Re: du and wc should be able to read arguments from a file

2003-09-20 Thread Jim Meyering
Dave Gotwisner <[EMAIL PROTECTED]> wrote: > Rather than assume it just takes a list of files, I would suggest strongly that > whoever chooses > to implement this (if anyone does), they also allow it to take other options as > part of the file. Thanks for the suggestion, but I see no benefit in tak

Re: du and wc should be able to read arguments from a file

2003-09-19 Thread Richard Dawe
Hello. Dave Gotwisner wrote: [snip] > Rather than assume it just takes a list of files, I would suggest strongly > that whoever chooses to implement this (if anyone does), they also allow > it to take other options as part of the file. > Literally, they should replace the "--process-file=foo" with

Re: du and wc should be able to read arguments from a file

2003-09-19 Thread Bernd Jendrissek
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Sep 19, 2003 at 09:12:05AM -0600, Bob Proulx wrote: > Bernd Jendrissek wrote: > > Jim Meyering wrote: > > > If the format is simply one file name per line, then what about > > > files with names containing a newline? > > > > > > One solution i

Re: du and wc should be able to read arguments from a file

2003-09-19 Thread Bob Proulx
Bernd Jendrissek wrote: > Jim Meyering wrote: > > If the format is simply one file name per line, then what about > > files with names containing a newline? > > > > One solution is to require that newlines and backslashes be > > backslash-escaped. Another is simply to require that file names > >

Re: du and wc should be able to read arguments from a file

2003-09-19 Thread Dave Gotwisner
Jim Meyering wrote: > "Dan Heller" <[EMAIL PROTECTED]> wrote: > > Anyway, the other method is to support the "take the input from a file" > > approach that Dave pointed out: > > Thanks for bringing this up. > > It would be useful to give du and wc options to make them > read all file name argument

Re: du and wc should be able to read arguments from a file

2003-09-18 Thread Bernd Jendrissek
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Sep 18, 2003 at 09:23:24AM +0200, Jim Meyering wrote: > If the format is simply one file name per line, then what about > files with names containing a newline? > > One solution is to require that newlines and backslashes be backslash-escaped.

Re: du doesn't take stdin

2003-09-14 Thread Richard Dawe
Hello. Dan Heller wrote: > > Is this an oversight or omission? > I want to do: > $ locate .jpg | sed [...] | du -c -b Why should du read a list of files on stdin? You can use xargs to convert stdin to a list of parameters: locate .jpg | sed [...] | xargs du -c -b xargs comes with GNU find

Re: du 4.1 crashes linux system

2003-09-11 Thread Jim Meyering
André Somers <[EMAIL PROTECTED]> wrote: > When I run du on a folder with *lots* of files (I estimate anywhere between > 200,000 to 400,000) over many subdirectories, du manages to crash my linux > sytem. I run du as a normal user. If I look at the systemlog, there is no > information to be found th

Re: du does not account space allocated by long softlinks

2002-12-08 Thread Ville Herva
On Sun, Dec 08, 2002 at 09:18:43PM +0100, you [Jim Meyering] wrote: > Ville Herva <[EMAIL PROTECTED]> wrote: > > Long (non-embedded) softlinks allocate disk blocks to hold the referred path > > on linux/ext[23] (possibly on other fs's as well). This space is not > > reported by du(1) at all: > > >

Re: du and tar: --exclude-from option

2002-11-01 Thread Bob Proulx
Jacob Elder <[EMAIL PROTECTED]> [2002-10-31 14:21:52 -0500]: > So what is the idiomatic way to guess the size of an archive before writing > to tape? The silence has been deafening. Probably everyone else is busy and so I will jump in again. > [...previously...] > df reports that I'm using 2882M

Re: du and tar: --exclude-from option

2002-10-31 Thread Jacob Elder
On Wed, Oct 30, 2002 at 05:05:02PM -0700, Bob Proulx wrote: > > I am not convinced by this data that the exclude list is really the > issue here. It might be. But the other confusion seems a much more > likely explanation. > > Bob > So what is the idiomatic way to guess the size of an archive

Re: du and tar: --exclude-from option

2002-10-31 Thread Paul Jarc
[EMAIL PROTECTED] (Bob Proulx) wrote: > df is reporting disk blocks free. > > du is reporting disk blocks used. df reports both free and used blocks. paul ___ Bug-fileutils mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-fileu

Re: du and tar: --exclude-from option

2002-10-31 Thread Bob Proulx
Jacob Elder <[EMAIL PROTECTED]> [2002-09-28 18:13:11 -0400]: > It appears that du and tar use a different pattern language for their > --exclude-from option. I was trying to predict the size of a backup that > would be performed with tar, and came across a discrepency. > > df reports that I'm usin

Re: du -h -d 1

2002-08-20 Thread Bob Proulx
Max Stam <[EMAIL PROTECTED]> [2002-08-20 14:30:37 +0800]: > Gidday Folks > I couldn't find a general contact address for the fileutils authoring group > so I sent this to here. This is it! > "A total size of everything in the current directory would be nice. We can > control the number of direct

Re: du -sh Error

2002-06-15 Thread Michael Stone
On Sat, Jun 15, 2002 at 07:43:35PM +0200, Daniel Holbach wrote: > root@chef:/var/spool/oops/storages# du -sh > 24k . > root@chef:/var/spool/oops/storages# ls -l > -rw-r--r--1 proxy proxy 20971520 Jun 15 19:35 oops_storage Probably a sparse file. For example: (42)osgiliath:/tmp> dd

Re: du, kilobytes

2002-05-21 Thread Dag Øien
At 03:32 +0300 2002-05-21, A. Wik wrote: >On Mon, 20 May 2002, Dag Øien wrote: > >> >This page describes du as found in the fileutils-3.16 >> >package; other versions may differ slightly. Mail correc- >> >tions and additions to [EMAIL PROTECTED] and [EMAIL PROTECTE

Re: du, kilobytes

2002-05-20 Thread Andries . Brouwer
From [EMAIL PROTECTED] Mon May 20 14:31:06 2002 Subject: du, kilobytes From: =?ISO-8859-1?Q?Dag_=D8ien?= <[EMAIL PROTECTED]> Content-Transfer-Encoding: 7bit >This page describes du as found in the fileutils-3.16 >package; other

Re: du, kilobytes

2002-05-20 Thread A. Wik
On Mon, 20 May 2002, Dag Øien wrote: > >This page describes du as found in the fileutils-3.16 > >package; other versions may differ slightly. Mail correc- > >tions and additions to [EMAIL PROTECTED] and [EMAIL PROTECTED] > >and [EMAIL PROTECTED] . Report bug

Re: du wildcards interpretation security flaw

2002-03-01 Thread Bob Proulx
> I ve got a file in my home directory, that begins with a "-". See > the output of du -sh * below. Maybe tomeone could place some nasty > files in temp, and whet root does a du, then... Please check out the faq on filenames that start with a dash. http://www.gnu.org/software/fileutils/doc/f

Re: du -x still supported?

2002-02-10 Thread Bob Proulx
> I ask because it doesn't appear to do what logic and the man page > imply it will do when executed as such: du -sHx /* it reports size > for /home, /usr, /data and /proc which are all seperate > filesystems. du -x will avoid crossing any filesystem below the ones that you are asking it about.

Re: du: error reporting filesystem usage?

2002-02-06 Thread Matt Schalit
Paco Brufal wrote: > There are about 600 MB of difference in the /var partition... I am > using ReiserFS on a Debian Potato, package fileutils is version 4.0l-8. I can't speak to the exact error, Paco, but I can tell you that a large number of bugs have been fixed in the latest fileuti

Re: du bug?

2002-01-27 Thread Bob Proulx
> du -h and du -H returns different numbers, it's bizarre. Could you be more specific? Why is it bizarre? Different numbers from what? At first glance nothing jumped off of the page at me as being unusual. Bob ___ Bug-fileutils mailing list [EMAIL

Re: du enhancement

2001-06-24 Thread Bob Proulx
> I'm working on a packaging system that produces statistics of the size of different >types of files. It uses fileutils/du for this and passes the files as arguments. >There is, however, a limit to how many arguments can be passed to a program, and for >packages with a lot of files this is a p

Re: du

2001-04-15 Thread Bob Proulx
> Maybe I'm crazy or doing something wrong, but I swear that the -S > option in the 'du' utility doesnt do what it is supposed to. It is > supposed to not show the subdirectories but it still does. The > output of 'du' is the same as 'du -S' I think. I think you are confusing the -S and -s option

Re: du

2001-04-10 Thread Matthew Schalit
"Daniel A. Palm" wrote: > > Hi. > Maybe I'm crazy or doing something wrong, but I swear that the -S option in the >'du' utility > doesnt do what it is supposed to. It is supposed to not show the subdirectories > but it still does. The output of 'du' is the same as 'du -S' I think. > > I'm usi

Re: du on SuSE7.0

2001-03-02 Thread Bob Proulx
Petra Thanks for the report. But I think it is doing the right thing. > prometheus{/home/systems/syk/src}4 % l RCS > total 11 > -r-xr-xr-x 1 syk systems 5261 Feb 6 1997 disk_usage,v > -r-xr-xr-x 1 syk systems 784 Oct 7 1997 ecmwf.hippi,v > -r-xr-xr-x 1 syk sy

Re: "du -sc ...xxx ...xxx/*" skips directories (fwd)

2000-08-20 Thread Jim Meyering
Thanks for the report. I'm not sure that's a bug, since the standard does say not to print or count sizes for files whose sizes have already been counted, so when it encounters each subdirectory for the second time, it refrains from counting it. You can work around it if you use the --count-link