how to make the contents of a file disappear after x numbers of days or at date

Colin Law clanlaw at googlemail.com
Thu Sep 9 16:42:58 UTC 2010


On 9 September 2010 17:32, Johnneylee Rollins
<johnneylee.rollins at gmail.com> wrote:
> On Thu, Sep 9, 2010 at 4:20 AM, user1 <bqz69 at telia.com> wrote:
>> Anybody know of a way to make the contents of a file (txt, html, jpeg,
>> png, mp3, ogg etc.) disappear after a certain number of days.
>>
>> To make the whole content or a selected part of a file to disappear.
>>
>> The charateristic must be hidden in the file and not to be removed by a
>> copy.
> Cron. https://help.ubuntu.com/community/CronHowto
>
> write a script to remove files. It can even have a config for a list
> of files to remove at those intervals.
> Also, you can check the date of the files and current time if you want
> time elapsing. I personally want to switch to using the discordian
> date system.

I don't think using that date system would make any difference as the
OP just wants elapsed days.
Message timed at 17:40 BST, Boomtime, the 33rd day of Bureaucracy in
the YOLD 3176

Colin




More information about the ubuntu-users mailing list