I am writing a small utility to resursively search all files in all subdirectories for a substring, and replace it with another.
I would like to handle wildcarding myself in my application, but when I run my program:
./a.out prefix* search replace
it seems that the terminal does the wildcarding for me, passing the args:
a.out prefix_01 search replace
where prefix_01 is one of the files I want to process.
Is there a way for the application to tell the terminal to not process wildcards? I suspect this might be something I specify when I run the command...?
That does seem to fix the immidiate problem.... (backslash escaping the asterix), but it looks like I'll have to come up with another convention for dealing with wildcards.... Thanks.