1

Replace yesterday date with today's date except from the first line

view story
linux-howto

http://www.unix.com – Hello, I have a file like this: 2012112920121130 12345620121130msABowwiqiq 34477420121129amABamauee e7748420121130ehABeheheei in case the content of the file has the date of yesterday within the lines containing pattern AB this should be replaced by the current date. But if I use "sed", it will replace all the occurrences and I want to leave the first line as it is. How can I do that? Any help is really appreciated. (HowTos)