HI
How i can retain the old date even thogh i modified the file in linux
for example
Sep 30 10:17 gr.txt
if i modify this file it will change the data stamp , but i wnat to keep
the old time stamp even i change the file
rds
HI
How i can retain the old date even thogh i modified the file in linux
for example
Sep 30 10:17 gr.txt
if i modify this file it will change the data stamp , but i wnat to keep
the old time stamp even i change the file
rds
A method to save the last updated timestamp. Does not save the file created timestamp.
# Save the timestamp by creating an empty file with a copy of the timestamp
touch -r gr.txt gr.txt.timestamp
# Edit the file
# Restore the timestamp
touch -t gr.txt.timestamp gr.txt
# Tidy up
rm gr.txt.timestamp
You can use touch to change the timestamp to whatever you wish
Thanks for all members for support and help.
i am still getting this date format error
touch -r dbimp.par dbimp.par.200901261759.30
then i edit the file
then i try to resore the file , i get the date format error
touch -t dbimp.par.200901261759.30 dbimp.par
touch: invalid date format `dbimp.par.200901261759.30'
how i can resolve this date issue
rds
---------- Post updated at 07:41 AM ---------- Previous update was at 06:02 AM ----------
ok i found the date format
thanks for support and help
rds