Iam a newbies to Shell scripting. Iam trying to replace the date inside the file to new date. is there anyway that we can just use the pattern to search as "[0-9]..." I have many files want to replace with the same date, and each file contains different date.
Thanks for a quick response.
ex: file.txt
Today is 2012-10-04.
and I would like to change the date inside the file "2012-10-04" to new date. I know how to replace it as "s/olddate/newdate/", this way I need to get into the file to get the old date that I would like to change. But this ways takes time since I have many files and each file contains different date.
Please help me to use "pattern" instead.