Date: Mon, 21 Jan 2002 22:39:40 +0200 From: Giorgos Keramidas <keramida@FreeBSD.org> To: jordan.breeding@attbi.com Cc: freebsd-current@FreeBSD.org Subject: Re: Questions about -current Message-ID: <20020121203940.GA1526@hades.hell.gr> In-Reply-To: <20020121092209.WZWB10199.rwcrmhc53.attbi.com@rwcrwbc55> References: <20020121092209.WZWB10199.rwcrmhc53.attbi.com@rwcrwbc55>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-01-21 09:22:08, jordan.breeding@attbi.com 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: http://people.FreeBSD.org/~keramida/pr/feedback/ 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 Cheers, -- 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 majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020121203940.GA1526>