File content transformation tool
-
-
I am not certain, having not touched anything U*nix-ish in a while, but I think that (GNU) SED[^] was designed for things like that. You can also see Here[^] for a non-GNU-specific site. Edit: From the One Liners Page[^]
substitute (find and replace) "foo" with "bar" on each line
sed 's/foo/bar/' # replaces only 1st instance in a line
sed 's/foo/bar/4' # replaces only 4th instance in a line
sed 's/foo/bar/g' # replaces ALL instances in a line
sed 's/\(.*\)foo\(.*foo\)/\1bar\2/' # replace the next-to-last case
sed 's/\(.*\)foo/\1bar/' # replace only the last casePeace!
-=- James
Please rate this message - let me know if I helped or not! * * *
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles -
-
Not quite sure what you mean by tokens and values. If you are looking for a search and replace on specific file types, VS does that..
Rocky <>< Latest Code Blog Post: OpenID - More thought - Great system if.. Latest Tech Blog Post: Frustrated Total Internal Reflection-FTIR = Cool!