Re: how to tell ls output date in digital

2010-09-09 Thread andrew clarke
On Wed 2010-09-08 16:03:20 UTC-0700, Guojun Jin (g...@ubicom.com) wrote:

 I remember that ls can output date in digital like following format
 before
 
 -rw-r--r--  1 user  Domain Users54323 2010-09-08 14:12 crash.log
 
 Instead of   Sep 08 2010 or   Sep 08 11:07
 
 But I cannot find any option or ENV to do this under FreeBSD (6.X-R).
 
 Does anyone have knowledge about this possibility?

In FreeBSD 7.3 I use /usr/local/bin/gls installed from the
sysutils/coreutils port, and a tcsh alias for ls:

ls  gls --time-style=long-iso --color=auto

21:23 ozzmo...@blizzard [~]ls -ld /
drwxr-xr-x 19 root wheel 512 2010-09-05 03:11 /

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: how to tell ls output date in digital

2010-09-09 Thread andrew clarke
On Thu 2010-09-09 13:11:39 UTC+, Pala, Santosh (santosh_p...@keane.com) 
wrote:

 The ls command with -E switch will give the required output. 

Hmm, not in FreeBSD 7.3:

23:19 ozzmo...@blizzard [~]/bin/ls -E
ls: illegal option -- E
usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [file ...]

23:19 ozzmo...@blizzard [~]/usr/local/bin/gls -E
/usr/local/bin/gls: invalid option -- 'E'
Try /usr/local/bin/gls --help' for more information.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: how to tell ls output date in digital

2010-09-09 Thread Pala, Santosh
Hi Andrew,

The ls command with -E switch will give the required output. 

Regards,
Pala.

From: owner-freebsd-questi...@freebsd.org [owner-freebsd-questi...@freebsd.org] 
on behalf of andrew clarke [m...@ozzmosis.com]
Sent: Thursday, September 09, 2010 9:24 PM
To: Guojun Jin
Cc: questi...@freebsd.org
Subject: Re: how to tell ls output date in digital

On Wed 2010-09-08 16:03:20 UTC-0700, Guojun Jin (g...@ubicom.com) wrote:

 I remember that ls can output date in digital like following format
 before

 -rw-r--r--  1 user  Domain Users54323 2010-09-08 14:12 crash.log

 Instead of   Sep 08 2010 or   Sep 08 11:07

 But I cannot find any option or ENV to do this under FreeBSD (6.X-R).

 Does anyone have knowledge about this possibility?

In FreeBSD 7.3 I use /usr/local/bin/gls installed from the
sysutils/coreutils port, and a tcsh alias for ls:

ls  gls --time-style=long-iso --color=auto

21:23 ozzmo...@blizzard [~]ls -ld /
drwxr-xr-x 19 root wheel 512 2010-09-05 03:11 /

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

__
Disclaimer:  This email message and any attachments are for the sole use of the 
intended recipient(s) and may contain information that is confidential, legally 
privileged or otherwise exempt from disclosure under applicable law. If you are 
not the intended recipient(s) or have received this message in error, you are 
instructed to immediately notify the sender by return email and required to 
delete this message from your computer system. This communication does not form 
any contractual obligation on behalf of the sender, the sender's employer or 
such employer's parent company, affiliates or subsidiaries.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: how to tell ls output date in digital

2010-09-09 Thread Jerry McAllister
On Thu, Sep 09, 2010 at 01:11:39PM +, Pala, Santosh wrote:

 Hi Andrew,
 
 The ls command with -E switch will give the required output. 

Doesn't for me.
Says -E is an illegal option.

Running FreeBSd 8.1 stock ls.

On the other hand,   ls -lD %F %T %Z   does nicely.

jerry

 
 Regards,
 Pala.

 
 From: owner-freebsd-questi...@freebsd.org 
 [owner-freebsd-questi...@freebsd.org] on behalf of andrew clarke 
 [m...@ozzmosis.com]
 Sent: Thursday, September 09, 2010 9:24 PM
 To: Guojun Jin
 Cc: questi...@freebsd.org
 Subject: Re: how to tell ls output date in digital
 
 On Wed 2010-09-08 16:03:20 UTC-0700, Guojun Jin (g...@ubicom.com) wrote:
 
  I remember that ls can output date in digital like following format
  before
 
  -rw-r--r--  1 user  Domain Users54323 2010-09-08 14:12 crash.log
 
  Instead of   Sep 08 2010 or   Sep 08 11:07
 
  But I cannot find any option or ENV to do this under FreeBSD (6.X-R).
 
  Does anyone have knowledge about this possibility?
 
 In FreeBSD 7.3 I use /usr/local/bin/gls installed from the
 sysutils/coreutils port, and a tcsh alias for ls:
 
 ls  gls --time-style=long-iso --color=auto
 
 21:23 ozzmo...@blizzard [~]ls -ld /
 drwxr-xr-x 19 root wheel 512 2010-09-05 03:11 /
 
 Regards
 Andrew
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
 
 __
 Disclaimer:  This email message and any attachments are for the sole use of 
 the intended recipient(s) and may contain information that is confidential, 
 legally privileged or otherwise exempt from disclosure under applicable law. 
 If you are not the intended recipient(s) or have received this message in 
 error, you are instructed to immediately notify the sender by return email 
 and required to delete this message from your computer system. This 
 communication does not form any contractual obligation on behalf of the 
 sender, the sender's employer or such employer's parent company, affiliates 
 or subsidiaries.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: how to tell ls output date in digital

2010-09-09 Thread Chad Perrin
On Thu, Sep 09, 2010 at 10:29:08AM -0400, Jerry McAllister wrote:
 On Thu, Sep 09, 2010 at 01:11:39PM +, Pala, Santosh wrote:
 
  Hi Andrew,
  
  The ls command with -E switch will give the required output. 
 
 Doesn't for me.
 Says -E is an illegal option.

It works with ATT's version of ls, apparently.  I'm pretty sure it
doesn't work with either BSD ls or GNU ls, though, so I'm not sure how it
ended up being mentioned in this discussion.


 
 Running FreeBSd 8.1 stock ls.
 
 On the other hand,   ls -lD %F %T %Z   does nicely.

. . . and you can easily alias that to lsd for easier use (and a
chuckle).

Note that this doesn't work with GNU ls, because Stallman and MacKenzie
in their infinite wisdom decided GNU ls needed -D to produce output
tailored to some Emacs functionality.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]


pgpMfUmonUtkw.pgp
Description: PGP signature


how to tell ls output date in digital

2010-09-08 Thread Guojun Jin
I remember that ls can output date in digital like following format
before

 

-rw-r--r--  1 user  Domain Users54323 2010-09-08 14:12 crash.log

 

Instead of   Sep 08 2010 or   Sep 08 11:07

 

But I cannot find any option or ENV to do this under FreeBSD (6.X-R).

Does anyone have knowledge about this possibility?

 

-Jin

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: how to tell ls output date in digital

2010-09-08 Thread Eitan Adler
On Wed, Sep 8, 2010 at 7:03 PM, Guojun Jin g...@ubicom.com wrote:
 I remember that ls can output date in digital like following format

ls -lD format
check strftime(3) for details on format.




-- 
Eitan Adler
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: how to tell ls output date in digital

2010-09-08 Thread Guojun Jin
No D option in ls:

[162] bsd-ms: ls -lD +%F %H:%M
ls: illegal option -- D
usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [file ...]

[163] bsd-ms: uname -a
FreeBSD bsd-ms 6.4-RELEASE FreeBSD 6.4-RELEASE #0: Thu Mar  5 11:51:50 PST 2009

-Original Message-
From: Eitan Adler [mailto:li...@eitanadler.com] 
Sent: Wednesday, September 08, 2010 4:09 PM
To: Guojun Jin
Cc: questi...@freebsd.org
Subject: Re: how to tell ls output date in digital

On Wed, Sep 8, 2010 at 7:03 PM, Guojun Jin g...@ubicom.com wrote:
 I remember that ls can output date in digital like following format

ls -lD format
check strftime(3) for details on format.




-- 
Eitan Adler
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

Re: how to tell ls output date in digital

2010-09-08 Thread Chuck Swiger
Hi--

On Sep 8, 2010, at 4:14 PM, Guojun Jin wrote:
 No D option in ls:
 
 [162] bsd-ms: ls -lD +%F %H:%M
 ls: illegal option -- D
 usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [file ...]

I suspect that's a GNU extention to their version of ls.  Try installing 
/usr/ports/sysutils/coreutils and see whether /usr/local/bin/ls supports 
this

Regards,
-- 
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: how to tell ls output date in digital

2010-09-08 Thread Eitan Adler
On Wed, Sep 8, 2010 at 7:20 PM, Chuck Swiger cswi...@mac.com wrote:
 Hi--

 On Sep 8, 2010, at 4:14 PM, Guojun Jin wrote:
 No D option in ls:

 [162] bsd-ms: ls -lD +%F %H:%M
 ls: illegal option -- D
 usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [file ...]


% svn log -r 177907

r177907 | grog | 2008-04-03 23:57:46 -0400 (Thu, 03 Apr 2008) | 2 lines

Add -D option to specify exact format of date and time output with ls -l.



I just noticed your using 6.x. I'm not sure what revision 6.x was but
maybe it is too old to have this option?



-- 
Eitan Adler
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: how to tell ls output date in digital

2010-09-08 Thread Guojun Jin
6.4-R seems been released after that date. Maybe not.
Just checked, ls in 8.1-R has -D option. Now moving forward.

Thanks,

-Original Message-
From: Eitan Adler [mailto:li...@eitanadler.com] 
Sent: Wednesday, September 08, 2010 4:23 PM
To: Chuck Swiger
Cc: Guojun Jin; questi...@freebsd.org
Subject: Re: how to tell ls output date in digital

On Wed, Sep 8, 2010 at 7:20 PM, Chuck Swiger cswi...@mac.com wrote:
 Hi--

 On Sep 8, 2010, at 4:14 PM, Guojun Jin wrote:
 No D option in ls:

 [162] bsd-ms: ls -lD +%F %H:%M
 ls: illegal option -- D
 usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [file ...]


% svn log -r 177907

r177907 | grog | 2008-04-03 23:57:46 -0400 (Thu, 03 Apr 2008) | 2 lines

Add -D option to specify exact format of date and time output with ls -l.



I just noticed your using 6.x. I'm not sure what revision 6.x was but
maybe it is too old to have this option?



-- 
Eitan Adler
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org