fork(1) download
  1. sql <- "The cat with the bat went to town. He ate the fat mat and wouldn't stop til the sun came up. He was a fat cat that lived with a rat who owned many hats.The cat with the bat went to town. He ate the fat mat and wouldn't stop til the sun came up. He was a fat cat that lived with a rat who owned many hats."
  2. new_cols <- "happy"
  3. gsub('^(.{273})(.+)$', new_cols, sql, perl=TRUE)
Success #stdin #stdout 0.46s 79168KB
stdin
Standard input is empty
stdout
[1] "happy"