Hi all, I have a program for my data structures class due this week, and my instructor has said that the program needs to be able to run from the command line with a string of parameters that needs to be parsed.
Normally all my programs that I have done up to this point have all prompted the user to input the file name for the program's input and generally for every other user defined variables. I have been doing hours of research trying to figure this out for myself, but can not seem to get it done for the life of me.
I know I have written a good function to parse the string by testing it with string I have defined, but I can not seem to get the program to get the string parameter from the command line. I always get this error when i run this command
any help would be awesome guys!
Normally all my programs that I have done up to this point have all prompted the user to input the file name for the program's input and generally for every other user defined variables. I have been doing hours of research trying to figure this out for myself, but can not seem to get it done for the life of me.
I know I have written a good function to parse the string by testing it with string I have defined, but I can not seem to get the program to get the string parameter from the command line. I always get this error when i run this command
sr input=example2.txt;search=532;replace=2320
-bash: sr: command not found
any help would be awesome guys!