From owner-freebsd-current Sat May 18 23:20:13 2002 Delivered-To: freebsd-current@freebsd.org Received: from mail.deltanet.com (mail.deltanet.com [216.237.144.132]) by hub.freebsd.org (Postfix) with ESMTP id BEF9B37B405; Sat, 18 May 2002 23:20:10 -0700 (PDT) Received: from mammoth.eat.frenchfries.net (da001d0251.lax-ca.osd.concentric.net [64.0.144.252]) by mail.deltanet.com (8.11.6/8.11.6) with ESMTP id g4J5xQO28999; Sat, 18 May 2002 22:59:27 -0700 Received: by mammoth.eat.frenchfries.net (Postfix, from userid 1000) id 4E99E50F1; Sat, 18 May 2002 23:20:07 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mammoth.eat.frenchfries.net (Postfix) with ESMTP id 4C08A50E8; Sat, 18 May 2002 23:20:07 -0700 (PDT) Date: Sat, 18 May 2002 23:20:07 -0700 (PDT) From: Paul Herman X-X-Sender: pherman@mammoth.eat.frenchfries.net To: Dima Dorfman Cc: Giorgos Keramidas , Subject: Re: mergemaster(8) broken -- uses Perl In-Reply-To: <20020519060134.AF15F3E1A@turbine.trit.org> Message-ID: <20020518231328.W1980-100000@mammoth.eat.frenchfries.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 19 May 2002, Dima Dorfman wrote: > How about fixing ls(1) to output the numeric mode if asked to? That's good, but while you're at it you'd probably want to get *everything* out of (struct stat) and print it numerically (device, flags, atime since epoch, etc.) You could do this in ls(1), but I'll have a patch for fstat(1) soon (working on it) that gives you: bash$ /usr/obj/usr/src/usr.bin/fstat/fstat -s /tmp /kernel INODE DEV SIZE BLOCKS MODE FLAGS LNK UID GID ATIME MTIME CTIME NAME 235 226304 4114305 8096 100555 400000 1 0 0 1021779222 1021740354 1021740354 /kernel 56651 226304 512 4 041777 000000 6 0 0 1021787523 1021787657 1021787657 /tmp so you can parse it however you like. Either way, ls(1) or fstat(1), as long as you can get the info you need. :-) -Paul. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message