Erstellungsdatum auslesen aus der Datei
Hallo!
ich hab ein Problem!
und zwar muss ich aus einer Datei in linux (test) das erstellungsdatum auslesen und das erstellungsdatum als neuen Namen der Datei anwenden!
und jetzt das Problem!
Ich weis nicht wie das geht :'( kann mir da jemand helfen????
Gruß
Rafi
ich hab ein Problem!
und zwar muss ich aus einer Datei in linux (test) das erstellungsdatum auslesen und das erstellungsdatum als neuen Namen der Datei anwenden!
und jetzt das Problem!
Ich weis nicht wie das geht :'( kann mir da jemand helfen????
Gruß
Rafi
Please also mark the comments that contributed to the solution of the article
Content-Key: 44404
Url: https://administrator.de/contentid/44404
Printed on: April 19, 2024 at 13:04 o'clock
2 Comments
Latest comment
hi,
also ich würds so machen:
mfg godlike P
also ich würds so machen:
#!/bin/sh
pfad=/home
datei=$pfad/datei
stat=`stat -c %y $datei|tr [:space:] _`
mv $datei $pfad/$stat
mfg godlike P