I am trying to list just the files in a directory (not the subdirectories or files under the subdirectories) into a temporary file. I have defined the variable VAR_DIRECTORY as the directory I would like the files listed from.
When I use the following command:
ls $VAR_DIRECTORY/*.* >>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.