EN VI
Posts (0)
Questions (2)
2024-03-12 20:30:14
As others have mentioned, there is no subshell in your code. I think you probably saw code like num=27; seq 3 | while IFS= read -r line; do num="$line"; echo "inside: $num"; done; echo "outside: $num"...
Tags: bash shell variables
2024-03-16 04:30:07
With an iterator, inspired by Andrej: import re text = "hello123 world456" text = re.sub( r"\d+", lambda _, i=iter([":)"]): next(i, ""), text ) print(text) Attempt This Online! Or using...

Login


Forgot Your Password?

Create Account


Lost your password? Please enter your email address. You will receive a link to create a new password.

Reset Password

Back to login