Gentoo Archives: gentoo-user

From: "Canek Peláez Valdés" <caneko@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] look for a file type + sort
Date: Fri, 13 Sep 2013 04:58:55
Message-Id: CADPrc80WJ90kqjoaJrBgK5O2dQ7airjAhrYLWSREkUfiivQ06w@mail.gmail.com
In Reply to: [gentoo-user] look for a file type + sort by Joseph
1 On Thu, Sep 12, 2013 at 11:48 PM, Joseph <syscon780@×××××.com> wrote:
2 > I want to list recursively certain type of files eg. *.pdf but I want to
3 > display: date, path and newest file first.
4 >
5 > What is the easiest way of doing it?
6
7 ls -l --sort=time "$(find /path -iname "*.pdf")"
8
9 If there are no spaces in the filenames/directories, you can drop the
10 quotes from $().
11
12 Regards.
13 --
14 Canek Peláez Valdés
15 Posgrado en Ciencia e Ingeniería de la Computación
16 Universidad Nacional Autónoma de México

Replies

Subject Author
Re: [gentoo-user] look for a file type + sort "Canek Peláez Valdés" <caneko@×××××.com>