Timestamp change for hard and soft links

Hi team, i am writing a purge script to delete softlinks and hardlinks on linux system which are 3/10/30 days old. To test the script i need to create links with old timestamp, i am able to cange timestamp for files but not for links.

i tried touch -h option but this option is not available on RHEL.

can you please help me with this.

thanks
satya

Just a thought: why don't you test with files and then switch over to links? I suppose you use some find ... -type .... -newer ... and work on the output of this (either by piping it into a loop or by -exec ). What is the problem with testing your code with -type f and then switching over to -type l once the results are to your satisfaction?

I hope this helps.

bakunin