The easiest way I could think of to do the renaming was to make a dataframe with the old filenames in it, then construct the new ones:
tibble(oldname = txtfiles) %>% mutate(newname = str_replace(oldname, ".txt$", ".md")) -> dd
=> More informations about this toot | View the thread | More toots from nxskok@mastodon.cloud
text/gemini
This content has been proxied by September (ba2dc).