From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,88c90debff9112c0,start X-Google-Attributes: gidfa528,public From: jxb@unconfigured.xvnews.domain (Jocelyn Burget) Subject: Need a UNIX expert to create a new UNIX command Date: 2000/06/06 Message-ID: <8his5s$ing$1@miranda.gmrc.gecm.com>#1/1 X-Deja-AN: 631700397 Organization: The unconfigured xvnews people Reply-To: jxb@unconfigured.xvnews.domain Newsgroups: comp.unix.tru64 I do not know if it is the right place to post this article but it's the only one I found. I like to create my "own" UNIX command similar to the command: du I do not want to create an alias. I'd like to create a command, let's call it "diskfull", that does exactly the same thing as du but the output will be in my own format. Example: [nautilus:jxb] 11% diskfull -M filename Result: The reported occupied space is in Mbytes OR [nautilus:jxb] 11% diskfull -G filename Result: The reported occupied space is in Gbytes The way I see it the only operation to do is (Output from du -k)*512/1E6 OR (Output from du -k)*1024/1E9 Does anyone have an idea on how to do that? Thanks Regards JB