Prompt for and Replace string in file while preserving original modification data
This gist repo contains a linux bash script that:
- prompts for file to convert
- string to be replaced
- string to replace with It converts the file and preserves the original file modfication datatime. This is very useful when moving files across servers and other cases where the files hasn't changed materially except for some arbitrary (often server-specific) string.