On 2002-01-21 09:22:08, [EMAIL PROTECTED] wrote:
> 5) In -current would it be possible to have a few command line
> switches added to certain userland utilities?  I noticed -h made it
> into `ls` now, but `cp` still doesn't have -a or -x which I used to
> use all the time in Linux.  I know -a isn't a big deal but - x was
> definitely nice from time to time.

What does the -a or -x option do for the ls(1) command of Linux?
Perhaps equivalent options do already exist in FreeBSD ls(1).

> `date` having a --date option to tell you when a specified date is
> in Linux is also very nice.  Just some thoughts.

If I haven't misunderstood you on this, FreeBSD's date(1) can already
do what you want, although I have to admit that it works a bit
differently than Linux's date(1).

I've recently used date(1) -j and -f options to convert arbitrary
dates to the local timezone in a script I wrote to print the
modification date of problem reports.  You might want to check the
scripts at:


for samples of using date(1) to convert between timezones and date
representations.  A small example that will probably help you
understand how this is done (combined with the description of the -j
and -f options in the date(1) manual page) is shown below:

        hades!charon:[/home/charon]% date '+%s => %T %Z'
        1011645430 => 22:37:10 EET
        hades!charon:[/home/charon]% TZ=UTC date -j -f '%s' 1011645328 '+%s => %T %Z'
        1011645328 => 20:35:28 GMT


Giorgos Keramidas . . . . . . . . . keramida@{ceid.upatras.gr,freebsd.org}
FreeBSD Documentation Project . . . http://www.freebsd.org/docproj/
FreeBSD: The power to serve . . . . http://www.freebsd.org/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to