[osol-discuss] How to make file dates appear in americanized format

2009-03-21 Thread Harry Putnam
How can make dates on files appear in americanized format? Instead of lrwxrwxrwx 1 reader staff 36 2009-03-07 [...] I'd see: lrwxrwxrwx 1 reader staff 36 Mar 7 2009 [...] ___ opensolaris-discuss mailing list

Re: [osol-discuss] How to make file dates appear in americanized format

2009-03-21 Thread Robs
bash-3.2$ ls -l --time-style=+%b %d %Y total 407317 -rw-r--r-- 1 robs staff 15171 Nov 15 2008 adblock.txt drwxrwxrwx 2 robs staff21 Mar 14 2009 addons drwxr-xr-x 2 robs staff 7 Jan 29 2009 Backups bash-3.2$ man date Reformatting page. Please Wait... done snip

Re: [osol-discuss] How to make file dates appear in americanized format

2009-03-21 Thread Harry Putnam
Robs r...@sun.com writes: bash-3.2$ ls -l --time-style=+%b %d %Y total 407317 -rw-r--r-- 1 robs staff 15171 Nov 15 2008 adblock.txt drwxrwxrwx 2 robs staff21 Mar 14 2009 addons drwxr-xr-x 2 robs staff 7 Jan 29 2009 Backups bash-3.2$ man date Reformatting page.

Re: [osol-discuss] How to make file dates appear in americanized format

2009-03-21 Thread Danek Duvall
On Sat, Mar 21, 2009 at 10:13:41AM -0500, Harry Putnam wrote: --time-style=STYLE with -l, show times using style STYLE: full-iso, long-iso, iso, locale, +FORMAT. FORMAT is interpreted like `date'; if FORMAT is FORMAT1newlineFORMAT2, FOR-

Re: [osol-discuss] How to make file dates appear in americanized format

2009-03-21 Thread Harry Putnam
Danek Duvall danek.duv...@sun.com writes: The environment variable LC_TIME (see environ(5)) is supposed to control that. However, neither /usr/bin/ls nor /usr/gnu/bin/ls seem to do the right thing, as far as I can tell. GNU ls differentiates between C and any other locale when using ls -l

Re: [osol-discuss] How to make file dates appear in americanized format

2009-03-21 Thread Danek Duvall
On Sat, Mar 21, 2009 at 02:52:49PM -0500, Harry Putnam wrote: Danek Duvall danek.duv...@sun.com writes: The environment variable LC_TIME (see environ(5)) is supposed to control that. However, neither /usr/bin/ls nor /usr/gnu/bin/ls seem to do the right thing, as far as I can tell. GNU

Re: [osol-discuss] How to make file dates appear in americanized format

2009-03-21 Thread Harry Putnam
Danek Duvall danek.duv...@sun.com writes: What do you mean by `C' above. As in: GNU ls differentiates between C and any other locale when using ls -l (C gets you the style you want) The value of LC_TIME, which is the name of one of the locales installed on your system, as can be

Re: [osol-discuss] How to make file dates appear in americanized format

2009-03-21 Thread Danek Duvall
On Sat, Mar 21, 2009 at 04:47:16PM -0500, Harry Putnam wrote: What does it mean if user $LC_TIME returns (nothing There are three levels of locale-related environment variables. If LC_ALL is set, it's used for all the locale classes (date/time, messages, collation, etc). If that's not set,

Re: [osol-discuss] How to make file dates appear in americanized format

2009-03-21 Thread Harry Putnam
Danek Duvall danek.duv...@sun.com writes: On Sat, Mar 21, 2009 at 04:47:16PM -0500, Harry Putnam wrote: What does it mean if user $LC_TIME returns (nothing There are three levels of locale-related environment variables. If LC_ALL is set, it's used for all the locale classes (date/time,