Quantcast
Channel: Active questions tagged set-difference - Stack Overflow
Viewing all articles
Browse latest Browse all 35

How to remove some filenames from the list of all filenames in that folder

$
0
0

I created in Stata a list of all files in a folder with the following:

global file_all : dir "$outputsFolder" files "*.dta"

However, I want to remove two files from this list. I wish to create another list of files so that I can remove all the files in this new list from the file_all. I had try the following, but with no success:

global file_remove:  `"${outputsFolder}\dataset1.dta"' `"${outputsFolder}\dataset2.dta"'

And I also don't know how to create the set difference between those two lists.


Viewing all articles
Browse latest Browse all 35

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>