Unix/Linux Go Back    

Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Change the content of files but not change the date

Shell Programming and Scripting

Thread Tools Search this Thread Display Modes
Old Unix and Linux 12-17-2012   -   Original Discussion by ust3
ust3 ust3 is offline
Registered User
Join Date: Nov 2012
Last Activity: 28 January 2016, 7:24 AM EST
Posts: 66
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 ?


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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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 11:05 PM
when SCP, does file content change? ahtat99 Linux 1 08-29-2011 12:16 PM
How to change a file's content by row? buddhist Shell Programming and Scripting 5 11-30-2009 08:56 PM
how to change the content thru sed..... manas_ranjan Shell Programming and Scripting 3 09-22-2007 06:13 AM
Mass Change content in all files terala Shell Programming and Scripting 1 11-20-2005 01:30 AM

All times are GMT -4. The time now is 03:12 PM.