Suggestion for selecting files with '20130801' and 'USD': file.ls <- list.files(path='~/DATA/PiP/Curvas/',pattern='20130801.+.&USD')