LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Change the content of files but not change the date (https://www.linuxquestions.org/questions/linux-newbie-8/change-the-content-of-files-but-not-change-the-date-4175441791/)

ust 12-17-2012 10:46 AM

Change the content of files but not change the date
 
I have 100 files in a directory , all the files have a word "error" and they are created in different date . Now I would like to change the word from "error" to "warning" , and keep the date of the files ( that means do not change the file creation date after change the word ) , can advise what can I do ?

thanks.

TB0ne 12-17-2012 10:48 AM

Quote:

Originally Posted by ust (Post 4851012)
I have 100 files in a directory , all the files have a word "error" and they are created in different date . Now I would like to change the word from "error" to "warning" , and keep the date of the files ( that means do not change the file creation date after change the word ) , can advise what can I do ?

People have been 'advising you' to look things up and show some effort on your own for NINE YEARS. It doesn't appear to help.

Read the man page on the touch command.


All times are GMT -5. The time now is 02:04 AM.