Re: [gentoo-user] look for a file type + sort

2013-09-14 Thread Florian Philipp
Am 14.09.2013 06:04, schrieb Mark David Dumlao: On Sep 13, 2013 9:53 PM, Yuri K. Shatroff yks-...@yandex.ru mailto:yks-...@yandex.ru wrote: On 13.09.2013 17:43, Mark David Dumlao wrote: On Fri, Sep 13, 2013 at 9:36 PM, Yuri K. Shatroff yks-...@yandex.ru mailto:yks-...@yandex.ru wrote:

Re: [gentoo-user] look for a file type + sort

2013-09-13 Thread Jean-Christophe Bach
* Canek Peláez Valdés can...@gmail.com [13.09.2013. @00:16:51 -0500]: On Fri, Sep 13, 2013 at 12:11 AM, Joseph syscon...@gmail.com wrote: On 09/13/13 00:04, Canek Peláez Valdés wrote: On Thu, Sep 12, 2013 at 11:58 PM, Canek Peláez Valdés can...@gmail.com wrote: On Thu, Sep 12, 2013

Re: [gentoo-user] look for a file type + sort

2013-09-13 Thread Florian Philipp
Am 13.09.2013 08:24, schrieb Jean-Christophe Bach: * Canek Peláez Valdés can...@gmail.com [13.09.2013. @00:16:51 -0500]: On Fri, Sep 13, 2013 at 12:11 AM, Joseph syscon...@gmail.com wrote: On 09/13/13 00:04, Canek Peláez Valdés wrote: On Thu, Sep 12, 2013 at 11:58 PM, Canek Peláez Valdés

Re: [gentoo-user] look for a file type + sort

2013-09-13 Thread Joseph
On 09/13/13 08:50, Florian Philipp wrote: [snip] Hm, I've tried: ls -l --sort=time $(find /home/joseph -iname *.jpg) got: ls: invalid option -- '/' The exact same command (changing joseph with canek) works for me, except in directories/filenames with spaces, as expected. Do you have an alias

Re: [gentoo-user] look for a file type + sort

2013-09-13 Thread Yuri K. Shatroff
On 13.09.2013 10:24, Jean-Christophe Bach wrote: [ ... ] This one should work: find /home/joseph/ -iname *.pdf -exec ls -l --sort=time {} + -exec is not suitable here because it spawns a `ls` process per each found entry; aside from being slow, this disallows sorting at all. You'd prefer

Re: [gentoo-user] look for a file type + sort

2013-09-13 Thread Mark David Dumlao
On Fri, Sep 13, 2013 at 9:36 PM, Yuri K. Shatroff yks-...@yandex.ru wrote: On 13.09.2013 10:24, Jean-Christophe Bach wrote: [ ... ] This one should work: find /home/joseph/ -iname *.pdf -exec ls -l --sort=time {} + -exec is not suitable here because it spawns a `ls` process per each

Re: [gentoo-user] look for a file type + sort

2013-09-13 Thread Yuri K. Shatroff
On 13.09.2013 17:43, Mark David Dumlao wrote: On Fri, Sep 13, 2013 at 9:36 PM, Yuri K. Shatroff yks-...@yandex.ru wrote: On 13.09.2013 10:24, Jean-Christophe Bach wrote: [ ... ] This one should work: find /home/joseph/ -iname *.pdf -exec ls -l --sort=time {} + -exec is not suitable here

Re: [gentoo-user] look for a file type + sort

2013-09-13 Thread Alexander Kapshuk
On 09/13/2013 07:48 AM, Joseph wrote: I want to list recursively certain type of files eg. *.pdf but I want to display: date, path and newest file first. What is the easiest way of doing it? Perhaps not the most elegant solution. ls -lt `du -a|grep -i '\.pdf$'|awk '{ print $2 }'`|awk '{

Re: [gentoo-user] look for a file type + sort

2013-09-13 Thread Mark David Dumlao
On Sep 13, 2013 9:53 PM, Yuri K. Shatroff yks-...@yandex.ru wrote: On 13.09.2013 17:43, Mark David Dumlao wrote: On Fri, Sep 13, 2013 at 9:36 PM, Yuri K. Shatroff yks-...@yandex.ru wrote: On 13.09.2013 10:24, Jean-Christophe Bach wrote: [ ... ] This one should work: find /home/joseph/

[gentoo-user] look for a file type + sort

2013-09-12 Thread Joseph
I want to list recursively certain type of files eg. *.pdf but I want to display: date, path and newest file first. What is the easiest way of doing it? -- Joseph

Re: [gentoo-user] look for a file type + sort

2013-09-12 Thread Canek Peláez Valdés
On Thu, Sep 12, 2013 at 11:48 PM, Joseph syscon...@gmail.com wrote: I want to list recursively certain type of files eg. *.pdf but I want to display: date, path and newest file first. What is the easiest way of doing it? ls -l --sort=time $(find /path -iname *.pdf) If there are no spaces in

Re: [gentoo-user] look for a file type + sort

2013-09-12 Thread Canek Peláez Valdés
On Thu, Sep 12, 2013 at 11:58 PM, Canek Peláez Valdés can...@gmail.com wrote: On Thu, Sep 12, 2013 at 11:48 PM, Joseph syscon...@gmail.com wrote: I want to list recursively certain type of files eg. *.pdf but I want to display: date, path and newest file first. What is the easiest way of

Re: [gentoo-user] look for a file type + sort

2013-09-12 Thread Joseph
On 09/13/13 00:04, Canek Peláez Valdés wrote: On Thu, Sep 12, 2013 at 11:58 PM, Canek Peláez Valdés can...@gmail.com wrote: On Thu, Sep 12, 2013 at 11:48 PM, Joseph syscon...@gmail.com wrote: I want to list recursively certain type of files eg. *.pdf but I want to display: date, path and

Re: [gentoo-user] look for a file type + sort

2013-09-12 Thread Canek Peláez Valdés
On Fri, Sep 13, 2013 at 12:11 AM, Joseph syscon...@gmail.com wrote: On 09/13/13 00:04, Canek Peláez Valdés wrote: On Thu, Sep 12, 2013 at 11:58 PM, Canek Peláez Valdés can...@gmail.com wrote: On Thu, Sep 12, 2013 at 11:48 PM, Joseph syscon...@gmail.com wrote: I want to list recursively