I'm working with IRAF, based on SPP, kind of a mix between Fortran and C. I'm looking for a way of referring to a string content when using ls
. For example, I can type ls *hola*
if I want to list every file containing the word hola in my directory. Supose I have an string called id
whose content is the world hola. How could I refer to the content in id
? I'm looking for some sort of ls id
(I know that construction won't work) which returns the same result as in ls *hola*
.
Thank you in advance.
EDIT: SPP is somehow hidden on the Internet but here you have a reference manual https://www.mn.uio.no/astro/english/services/it/help/visualization/iraf/SPPManual.pdf although I haven't found any information there related to this topic.