I want to delete a bunch of files that have the number 750/773 at the end after combining them all. The files star with Kde_ but have additional words like Kde_theft, Kde_theftday, etc. (Kde_theft750/Kde_theft770).
How can I use a wildcard to prevent having to write each variable name down? So instead of having to write out all of Kde_theft, Kde_theftday, etc. ?
foreach i of numlist 750/773 {
foreach j in Kde_theft {
rm `j'`i'.dta
}
}
How can I use a wildcard to prevent having to write each variable name down? So instead of having to write out all of Kde_theft, Kde_theftday, etc. ?
foreach i of numlist 750/773 {
foreach j in Kde_theft {
rm `j'`i'.dta
}
}
Comment