Change the content of files but not change the date | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Change the content of files but not change the date

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-17-2012
ust3 ust3 is offline
Registered User
 
Join Date: Nov 2012
Last Activity: 22 July 2014, 9:21 PM EDT
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
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.

Last edited by Scott; 12-17-2012 at 01:31 PM.. Reason: Double post AFTER receiving a reply in the other thread. Tsch.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Change the content of files but not change the date ust3 Shell Programming and Scripting 7 12-17-2012 10:05 PM
when SCP, does file content change? ahtat99 Linux 1 08-29-2011 11:16 AM
How to change a file's content by row? buddhist Shell Programming and Scripting 5 11-30-2009 07:56 PM
how to change the content thru sed..... manas_ranjan Shell Programming and Scripting 3 09-22-2007 05:13 AM
Mass Change content in all files terala Shell Programming and Scripting 1 11-20-2005 12:30 AM



All times are GMT -4. The time now is 01:05 AM.