Hence, #rstats and the fs package, which I had never used before. I set dir_base to be the folder I wanted to work in, and then
dir_info(dir_base) %>% filter(str_detect(path, ".txt$")) %>% filter(str_detect(path, "T")) %>% pull(path) -> txtfiles txtfiles
dir_info returns info about all the files in the folder you give it. Then I used stringr to select the files I wanted to rename.
=> More informations about this toot | View the thread | More toots from nxskok@mastodon.cloud
=> View rstats tag This content has been proxied by September (3851b).Proxy Information
text/gemini