Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-Id: <4.3.2.7.0.20001018223411.00c75c50@pop.bresnanlink.net> X-Sender: cabbey AT pop DOT bresnanlink DOT net X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Wed, 18 Oct 2000 22:45:58 -0500 To: cygwin AT sources DOT redhat DOT com From: Chris Abbey Subject: Re: ps output format In-Reply-To: <20001018232320.D15926@cygnus.com> References: <4 DOT 3 DOT 2 DOT 7 DOT 0 DOT 20001018221146 DOT 00c6f190 AT pop DOT bresnanlink DOT net> <5206-Wed18Oct2000223844+0100-starksb AT ebi DOT ac DOT uk> <2443-Wed11Oct2000213946+0100-starksb AT ebi DOT ac DOT uk> <20001011164208 DOT A13281 AT cygnus DOT com> <5206-Wed18Oct2000223844+0100-starksb AT ebi DOT ac DOT uk> <20001018225426 DOT B15652 AT cygnus DOT com> <4 DOT 3 DOT 2 DOT 7 DOT 0 DOT 20001018221146 DOT 00c6f190 AT pop DOT bresnanlink DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed At 23:23 10/18/00 -0400, Christopher Faylor wrote: >I don't see much difficulty in parsing the output now, actually. true, once you know what you're doing... I've seen a lot of people write scripts that would have choked on that output you had above, simply because they saw formatted output and started making assumptions, where as if they'd seen colon separated values.. well cut -d ':' would become a much more heavily used script construct. Often picking up those scripts and moving them between *nix platforms has been a royal pain in the past, not only do you have to deal with the myriad of conflicting command line options, and the different ordering, but also that sometimes a field is 4 chars, and others it could be 10. This could *all* be solved if there was ONE switch across all ps implementations that output a simple csv style out put that could be accessed with a simple hlookup style of argument. ok, so I'm off in left field smoking crack and picking daises... -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com