Benoît Barbier wrote:

Question N°1
Comment n'avoir que 29108 sans la chaine "/home/benoit/.corbeille" ?
avec ceci?
du -s $HOME/.corbeille | cut -f1

Question N°2
Avec find je n'arrive pas a dénicher LE PLUS vieux fichier, il y bien sup
à date mais c'est tout.

je n'ai pas d'idée simple (tenir un index des fichiers avec leur date d'entrée, etc compliqué et lent en bash)

En me creusant un peu j'ai trouvé ça :

leplusvieux=$(ls -tr $HOME/.corbeille | head -n 1)
ça risque d'être assez lent si tu effaces bcp de gros fichiers

A titre d'information, n'y a-t-il pas d'autre solution?

Merci d'avance.


Benoît
_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
Archives: http://www.mail-archive.com/linux@;lists.unixtech.be
IRC: efnet.unixtech.be:6667 - #unixtech
--
 _                      _
( "> Thomas Silvestre <^ )
(v )   AEL activist   ( <)
 ---    www.ael.be    ---
"Si tu arrives au sommet de la montagne, continue de grimper!"
  - Bouddha .

_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
Archives: http://www.mail-archive.com/linux@;lists.unixtech.be
IRC: efnet.unixtech.be:6667 - #unixtech

Répondre à