cde bash

Page principale

Répondre à ce message
Auteur: anne aublanc
Date:  
À: guilde
Sujet: cde bash
Et oui, encore moi

et rerebonjour;

comment rechercher un certain nombre de fichier sans ceux qui ont des liens?

exemple

ls -ltr /var/log/httpd/access_log*

--rw-r--r--    1 root     root      4120079 Mar 29 01:00
/var/log/httpd/access_log.20020329011205
lrwxrwxrwx    1 root     root           25 Mar 29 01:12
/var/log/httpd/access_log.20020401011205 -> access_log.20020329011206
--rw-r--r--    1 root     root      1009504 Mar 31 23:56
/var/log/httpd/access_log.20020329011206
lrwxrwxrwx    1 root     root           25 Apr  1 01:12
/var/log/httpd/access_log.20020408011205 -> access_log.20020401011206
lrwxrwxrwx    1 root     root           25 Apr  8 01:12
/var/log/httpd/access_log.20020415011204 -> access_log.20020408011206
--rw-r--r--    1 root     admin          41 Apr  8 22:47
/var/log/httpd/access_log.20020401011206
--rw-r--r--    1 root     root      1777865 Apr 15 00:55
/var/log/httpd/access_log.20020408011206
lrwxrwxrwx    1 root     root           25 Apr 15 01:12
/var/log/httpd/access_log -> access_log.20020415011205
--rw-r--r--    1 root     root       317768 Apr 16 12:04
/var/log/httpd/access_log.20020415011205


Je ne veux pas voir apparaître ceux qui ont des liens!

J'aimerai avoir cela :
--rw-r--r--    1 root     root      4120079 Mar 29 01:00
/var/log/httpd/access_log.20020329011205
--rw-r--r--    1 root     root      1009504 Mar 31 23:56
/var/log/httpd/access_log.20020329011206
--rw-r--r--    1 root     admin          41 Apr  8 22:47
/var/log/httpd/access_log.20020401011206
--rw-r--r--    1 root     root      1777865 Apr 15 00:55
/var/log/httpd/access_log.20020408011206
--rw-r--r--    1 root     root       317768 Apr 16 12:04
/var/log/httpd/access_log.20020415011205


merci
anne