H
Hike Mike
I want to replace strings in a file called .classpath
so i do this:
perl -pi.bak -e "s/ptlEdgeAth/ptlAthEdge/g" .classpath
and it works.
I want to replace strings in all files called .classpath (incuding
sub-directories)
so i do this:
find -name .classpath | xargs perl -pi.bak -e
"s/ptlEdgeAth/ptlAthEdge/g"
and it works.
How do i read a list of substitutions from a file and apply them to all
files named .classpath in all subdirectories?
I tried this:
find -name .classpath | xargs perl -pi.bak -e "diff.txt"
where diff.txt contains the lines:
s/ptlEdgeAth/ptlAthEdge/g
s/ptlEdgeAthDb/ptlAthEdgeDb/g
s/ptlEdgeCore/ptlCoreEdge/g
but it doesn't work
so i do this:
perl -pi.bak -e "s/ptlEdgeAth/ptlAthEdge/g" .classpath
and it works.
I want to replace strings in all files called .classpath (incuding
sub-directories)
so i do this:
find -name .classpath | xargs perl -pi.bak -e
"s/ptlEdgeAth/ptlAthEdge/g"
and it works.
How do i read a list of substitutions from a file and apply them to all
files named .classpath in all subdirectories?
I tried this:
find -name .classpath | xargs perl -pi.bak -e "diff.txt"
where diff.txt contains the lines:
s/ptlEdgeAth/ptlAthEdge/g
s/ptlEdgeAthDb/ptlAthEdgeDb/g
s/ptlEdgeCore/ptlCoreEdge/g
but it doesn't work