Skip to main content

Thread: File with timestamp from lastfile


i'd have script, creates file "lastfile", takes not current time bute timestamp last file created in directory.

example run script 2 pm, last file created @ 1pm, newly generated file should have 1pm timestamp.


possible?

yes, mybrain87

of course it's possible brains , ubuntu

try
code:
rm lastfile;for in $(ls -tr);do command=$(echo touch lastfile -r "$i");done;$command
works me: creating empty file timestamp of newest file in current directory.

have fun finding out
olle


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help File with timestamp from lastfile


Ubuntu

Comments

Popular posts from this blog

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support