Sparrow6.git | examples/tasks/replace/ | task.check


between: {OK} {DONE}
    regexp: HELLO \s+ (\d+)
end:

code: <<RAKU
!raku
if matched() {
    my $ln = captures-full()[0]<index>;
    my $num = capture()[0].Int;
    $num++;
    replace("{cache_root_dir()}/file.txt",$ln,"BYE $num");
}
RAKU

code: <<BASH
!bash
cat $cache_root_dir/file.txt
BASH