We have to make a script that interacts with the standard input, wich is a file and we put a keystring on it, but the difficulty of this exercise is that the file can't be found in some cases, so we have to save the filename to a variable
key.sh (keystring) < (filename)
how can i save the filename into a variable?