Perl: Search and replace directories within text files
Is it possible to search and replace directory locations within files using perl? I tried to do it with:
perl -pi.bak -e "s/C:\Log/C:\Log.v2/" test.txt
Where old location = C:\Log
Where new location = C:\Log.v2
The command above does not work.. Anyone can help me to sort this out? Thanks!