Re: OT: Alternatives to ls for sorting files by modification time
stat or write a program arround stat().
spotter@zaphod:~$ stat cd-door.c
File: `cd-door.c'
Size: 778 Blocks: 8 IO Block: 4096 Regular File
Device: 302h/770d Inode: 1254382 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 1000/ spotter) Gid: ( 1000/ spotter)
Access: 2002-09-14 21:09:12.000000000 -0400
Modify: 2002-08-06 10:13:47.000000000 -0400
Change: 2002-08-11 18:07:06.000000000 -0400
can specify output format for stat.
On Wed, 2002-09-25 at 03:46, Holger Rauch wrote:
> Hi!
>
> I admit that this is off-topic since it's a general shell scripting
> question, but what alternative commands instead of ls can be used to sort
> files by modification time? I'm not interested in the modification times,
> just the file names. So, actually in something that emulates "ls
> -lt1" behavior.
>
> (When I used "ls -lt1" I got an "argument list too long" error, so I need
> to use something else, but to be honest, I don't know what.)
>
> Thanks in advance for any info/advice!
>
> Kind regards,
>
> Holger
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: