If I have a BASH variable:
Exclude="somefile.txt anotherfile.txt"
How can I get the contents of a directory but exclude the above to files in the listing? I want to be able to do something like:
Files= #some command here
someprogram ${Files}
someprogram
should be given all of the files in a particular directory, except for those in the ${Exclude}
variable. Modifying someprogram
is not an option.