Re: cp /dev/zero filename creates large files

2003-09-25 Thread Don Sharp
Thanks to everyone that replied pointing out that it was /dev/null that I needed NOT /dev/zero. Thanks again Don Sharp "Peter J. Acklam" wrote: > > Don Sharp <[EMAIL PROTECTED]> wrote: > > >I carried out the following sequence of commands > > > >$ for i in `cat /tmp/d`; do if [ -f $i.idx ]; t

RE: cp /dev/zero filename creates large files

2003-09-25 Thread Peter J. Acklam
Don Sharp <[EMAIL PROTECTED]> wrote: >I carried out the following sequence of commands > >$ for i in `cat /tmp/d`; do if [ -f $i.idx ]; then ls -l ${i}*; fi; done >-rw-r--r--1 don None0 Jun 17 1998 dtaq >-rw-r--r--1 don None 3072 Jun 17 1998 dtaq.idx >$ cp /

Re: cp /dev/zero filename creates large files

2003-09-25 Thread jurgen . defurne
Don, The functionality you need is "/dev/null". Indeed, the function of /dev/zero is to provide a file which you can read indefinitely. You should use it like this : dd if=/dev/zero of= bs=1024 count=number_of_blocks Regards, Jurgen Don Sharp <[EMAIL PROTECTED]> Sent by: [EMAIL PRO