Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jul 1999 16:01:10 -0400 (EDT)
From:      "Brian F. Feldman" <green@FreeBSD.org>
To:        Keith Stevenson <k.stevenson@louisville.edu>
Cc:        freebsd-hackers@FreeBSD.org
Subject:   Re: Was someone looking for a BSD licensed stat(1)?
Message-ID:  <Pine.BSF.4.10.9907281558350.92555-100000@janus.syracuse.net>
In-Reply-To: <19990728154654.A26747@homer.louisville.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Since you've got it in RCS, you shouldn't have any problem adding new
features. How about a selectable display of fields, and ability to put
them in machine-readable (read: no cut required) form? I'd suggest
having a function that would printf "%s: whatever", arg1 for humans
and "whatever" for machines, selectable by something like a -c
"compact output flag." Here's the GPLd stat I have:

{"/usr"}# stat
stat [-cihsv] [-o opts] [-f file] [filename ...]
        -h      this help
        -v      verbose output
        -c      compact output
        -i      ignore errors
        -s      stop on error
        -f      read filenames to be stat-ed from file (- means stdin)
        -d      dereference symbolic links.
        -o opts output options (case insensitive):
                a       access time
                c       creation time
                d       device
                g       group
                i       inode
                l       links
                m       mode
                n       file name
                o       modification time
                s       size
                t       type
                u       owner


 Brian Fundakowski Feldman      _ __ ___ ____  ___ ___ ___  
 green@FreeBSD.org                   _ __ ___ | _ ) __|   \ 
     FreeBSD: The Power to Serve!        _ __ | _ \._ \ |) |
       http://www.FreeBSD.org/              _ |___/___/___/ 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9907281558350.92555-100000>