[uylug-varios] filesystem maze
Luis Pablo Pérez
kylroy at gmail.com
Sat Sep 15 12:23:43 PDT 2018
On Tue, Sep 11, 2018 at 11:57 PM Haroldo Stenger <haroldo.stenger at gmail.com>
wrote:
> hola!
>
> algún día encontraremos una forma de consultar nuestro filesystem
> paracambios recientes de modo más cool que
>
> find . | xargs -n1 -I{} sh -c "ls -l --full-time '{}'"|sort -k6,7 |less -S
>
find . -printf "%T+ %y %p\n"
es mas rápido ya que no crea una shell y un ls por cada archivo.
Ademas find ya ejecutó el stat y tiene la información.
Si igual prefieres la version con la shell entonces algo así debería ser
mejor ya que ejecuta muchos menos sub procesos:
find . -print0 | xargs -0 sh -c 'ls -l --full-time "$@"'
argv0_del_script_cualquier_string_sirve_incluso_una_x_o_un_string_vacio
> ese día se aproxima, lo prometo por gnu ;-)
>
>
$ man btrfs-subvolume | grep -A 2 find-new
find-new <subvolume> <last_gen>
List the recently modified files in a subvolume, after <last_gen>
ID.
> abrazos
> _______________________________________________
> Uylug-varios mailing list
> Uylug-varios at listas.uylug.org.uy
> http://listas.uylug.org.uy/listinfo.cgi/uylug-varios-uylug.org.uy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.uylug.org.uy/pipermail/uylug-varios-uylug.org.uy/attachments/20180915/5cb89b21/attachment.html>
More information about the Uylug-varios
mailing list