Visualizzazione dei risultati da 1 a 3 su 3

Discussione: ricerca in dir

  1. #1
    Utente di HTML.it L'avatar di indre
    Registrato dal
    Jan 2002
    Messaggi
    2,735

    ricerca in dir

    Ciao a tutti,
    mi chiedevo come faccio a cercare in una directory e sottodir tutti i file con estensione .php aventi come proprietario NON l'utente ROOT.

    sto leggendo il man ma ho qualche difficiltà.

    Grazie
    When I was young I used to pray for a bike. Then I realized that God doesn't work that way. So I stole a bike and prayed for forgiveness.

  2. #2
    Utente di HTML.it L'avatar di cacao74
    Registrato dal
    Jan 2005
    Messaggi
    2,570
    codice:
    $ find $DIRECTORY -not -user root -name "*.php" -ls
    ciao
    slack? smack!

  3. #3
    Utente di HTML.it L'avatar di indre
    Registrato dal
    Jan 2002
    Messaggi
    2,735

    re

    ciao.
    Grazie mille.
    avevo tamponato così

    find $DIR -name "*.php" -group GRUPPO -type f -print

    mi era sfuggita l'opzione not-user.

    Grazie.
    When I was young I used to pray for a bike. Then I realized that God doesn't work that way. So I stole a bike and prayed for forgiveness.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.