hi there
i am currently writing a script that does stuff with files
one file has a list of numbers
i am trying to perform a match for a string entered from STDIN
it compares what the user enters to the content of the file
eg
enter a number...
2345 #user enters number
2345 is searched for in file
response 2345 was found
or
2345 was not found
i would be gratefull if someone could give me an example
many thanks
i am currently writing a script that does stuff with files
one file has a list of numbers
i am trying to perform a match for a string entered from STDIN
it compares what the user enters to the content of the file
eg
enter a number...
2345 #user enters number
2345 is searched for in file
response 2345 was found
or
2345 was not found
i would be gratefull if someone could give me an example
many thanks