View previous topic :: View next topic |
Author |
Message |
augury l33t
Joined: 22 May 2004 Posts: 722 Location: philadelphia
|
Posted: Fri Dec 17, 2010 8:47 pm Post subject: sed and file modification times |
|
|
I used to use app-txt/rpl to "replace text" in files without changing the mod times, which could cause build tools rebuild the files, I lose my changes and my mind.
rpl is now a python app. The files all show modification time changes.
Is there a way to sed my files without changing file mod times? It seems a bit unusual. I'm guessing rpl recorded the time and then set it back again when it was done. |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9555 Location: beyond the rim
|
Posted: Fri Dec 17, 2010 8:51 pm Post subject: |
|
|
Well, you could make a copy of your files, edit those, use `touch --reference` to reset the mtime using the originals as reference and rename the copy back. Put it into a simple script if you need it on a regular basis. |
|
Back to top |
|
|
augury l33t
Joined: 22 May 2004 Posts: 722 Location: philadelphia
|
Posted: Sat Dec 18, 2010 8:52 am Post subject: |
|
|
I Think the one rpl may be masked. I got it to go. The one in portage said something about using nano. The touching thing soundis interesting. A few snags but it seems to run ok. Didn't even do everything i wanted to glibc. The programings is good. |
|
Back to top |
|
|
|