michaelsanford
Translator, Web Developer
That subject line is a bit convoluted, I admit.
What I'm trying to do is have an existing file act as a template, and then use a script to change strings in the file to other strings.
I'm not up on my C, but I'm thinking of a printf-style output. The argument structure is probably wrong, but it's something like printf('I am %A years old', $age);
I have a file full of %As and other formatting characters, and I want to replace the %As with a variable value, as a static file.
Is this simple? I can find the instances easily enough with grep, but I don't know how to replace the string.
Any help is appreciated, if you can decode this garbled explanation
What I'm trying to do is have an existing file act as a template, and then use a script to change strings in the file to other strings.
I'm not up on my C, but I'm thinking of a printf-style output. The argument structure is probably wrong, but it's something like printf('I am %A years old', $age);
I have a file full of %As and other formatting characters, and I want to replace the %As with a variable value, as a static file.
Is this simple? I can find the instances easily enough with grep, but I don't know how to replace the string.
Any help is appreciated, if you can decode this garbled explanation
