Hey there,
I`m a beginner so don`t be brutall with me if it`s a stupid or easy question.
I need to make a script that
1) reads from a text file with this pattern:
Quote:
first.c #define var 1 #define other_var 2 ... #define another_var
sedond.c #define a_var 1 #define another_var 2 ... #define variable n
.
.
.
2) and i need it to insert the #defines in the .c files
Problem is, that i`m working in a batch file,from within Windows, but with cygwin installed(so i have most of the UNIX commands, including SED), but i can`t insert "while" or "for" loops.
So, any ideas how to do this without those loops?
I really would appreciat the help