I have replaced word 'merchant
' to 'capital
' in files founded in the current directory using following command:
find * -type f -exec sed -i -e 's/merchant/capital/g' {} \;
but above command will modify the file date also, is there any way to stop file modification date?
Thanks in advance.
I don't think there is a clear solution for you.
But as a workaround solution.
Get the modification date of a file
Now After completing what you did restore the previous modification date
he following explains the above format:
For example: changind modification date of a file of mine called url.txt
output
change modification to 04/05/2016 20:05:04
Get sure that works
output