fork(1) download
  1. urls <- c('https::abc/efg/hij/', 'https::abc/efg/hij/lmn/', 'https::abc/efg/hij/lmn/opr/')
  2. sub(".*/([^/]*/)$", "\\1",urls)
Success #stdin #stdout 0.2s 39152KB
stdin
Standard input is empty
stdout
[1] "hij/" "lmn/" "opr/"