In writing a bash script in the terminal, it would be helpful if I could refer to either the first file name in a given directory or the last so that I can send that file through a process written in C and then delete it. I notice that ls shows the file names of a directory in the same order every time. Is there a name or a code for the file names in the directory? I cannot know the names of the files in advance and I would like avoid renaming them by hand before the script is used.
Thank you for your help.
James Adrian
jim@futurebeacon.com
Thank you for your help.
James Adrian
jim@futurebeacon.com