Visualizzazione dei risultati da 1 a 10 su 10

Discussione: data di un file..

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

    data di un file..

    Ciao a tutti..
    mi servirebbe un comandino che mi prenda la data di modifica di un file specifico (che so a priori)..
    come potrei fare??
    grazie ciao
    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 indre
    Registrato dal
    Jan 2002
    Messaggi
    2,735

    re

    up!
    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.

  3. #3
    Utente di HTML.it
    Registrato dal
    Jan 2002
    Messaggi
    411
    man find
    RTFM.
    Pessimismo e fastidio.

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

    re

    stavo smadonnando con gawk ...!!
    humm. si può fare anche con find?
    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.

  5. #5
    Utente di HTML.it
    Registrato dal
    Jan 2002
    Messaggi
    411
    Forse non ho capito:

    -Devi cercare un file con data di modifica $TOT

    Oppure

    -Devi cercare la data di modifica di un file $TOT
    RTFM.
    Pessimismo e fastidio.

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

    re

    cosi!
    -Devi cercare la data di modifica di un file $TOT

    ciao
    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.

  7. #7
    Utente di HTML.it
    Registrato dal
    Jan 2002
    Messaggi
    411
    ls -al $TOT|awk '{print $6,$7}'
    RTFM.
    Pessimismo e fastidio.

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

    re

    grazie...
    avevo risolto così..
    ls -lrt nome_file | gawk '$6 $7 $8 {print $7 " "$6 " "$8 }'

    provo la tua ..
    ciao e grazie ancora..
    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.

  9. #9
    Utente di HTML.it L'avatar di Lasher
    Registrato dal
    Apr 2003
    Messaggi
    183
    Questo è più bellino


    codice:
    stat nome_file | grep Modify | awk '{print $2}'

    Star Wars Fan


    Jam

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

    re

    si va sulle finezze...
    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.