Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.
2 deleted 5 characters in body
source | link

Perl 5, 5349 bytes

sleep print"chellosay"chello world
"^"�"x$_world"^""x$_.$"x(!/7/) for 2..12

Try it online!Try it online! - only really works in a terminal, but you can easily copy/paste from here.

Explanation

This script uses the stringwise XOR operation to capitalise the needed letters in each iteration. First we build the string 'hello world' (which includes \x1bc as an ANSI escape sequence to clear the screen), then we XOR (^) against a string of repeating NUL bytes (repeating as needed, 2 on the first iteration and finishing with 12), followed by a space ($") on all but the 7th iteration (which would remove the space in the middle - well, set it to NUL).

Please note this script contains unprintables, here's a reversible hex dump:

00000000: 736c 6565 7020 7072 696e7361 74227922 1b63 6865 6c6c  sleep print"say".chechell
00000010: 6c6c 6f20 776f 726c 640a6422 225e5e22 22000022 22787824 5f2e  lloo worldworld"^"."^""x$_."x
00000020: 245f 2e24 22782422 28217821 2f37 2f292f20 666f 7220 322e $_.2e31  $"x(!/7/) for 2..1
00000030: 322e32 2e31 32                                     2..12

Perl 5, 53 bytes

sleep print"chello world
"^"�"x$_.$"x(!/7/)for 2..12

Try it online! - only really works in a terminal, but you can easily copy/paste from here.

Explanation

This script uses the stringwise XOR operation to capitalise the needed letters in each iteration. First we build the string 'hello world' (which includes \x1bc as an ANSI escape sequence to clear the screen), then we XOR (^) against a string of repeating NUL bytes (repeating as needed, 2 on the first iteration and finishing with 12), followed by a space ($") on all but the 7th iteration (which would remove the space in the middle - well, set it to NUL).

Please note this script contains unprintables, here's a reversible hex dump:

00000000: 736c 6565 7020 7072 696e 7422 1b63 6865  sleep print".che
00000010: 6c6c 6f20 776f 726c 640a 225e 2200 2278  llo world."^"."x
00000020: 245f 2e24 2278 2821 2f37 2f29 666f 7220  $_.$"x(!/7/)for 
00000030: 322e 2e31 32                             2..12

Perl 5, 49 bytes

sleep say"chello world"^""x$_.$"x!/7/ for 2..12

Try it online! - only really works in a terminal, but you can easily copy/paste from here.

Explanation

This script uses the stringwise XOR operation to capitalise the needed letters in each iteration. First we build the string 'hello world' (which includes \x1bc as an ANSI escape sequence to clear the screen), then we XOR (^) against a string of repeating NUL bytes (repeating as needed, 2 on the first iteration and finishing with 12), followed by a space ($") on all but the 7th iteration (which would remove the space in the middle - well, set it to NUL).

Please note this script contains unprintables, here's a reversible hex dump:

00000000: 736c 6565 7020 7361 7922 1b63 6865 6c6c  sleep say".chell
00000010: 6f20 776f 726c 6422 5e22 0022 7824 5f2e  o world"^"."x$_.
00000020: 2422 7821 2f37 2f20 666f 7220 322e 2e31  $"x!/7/ for 2..1
00000030: 32                                       2
1
source | link

Perl 5, 53 bytes

sleep print"chello world
"^"�"x$_.$"x(!/7/)for 2..12

Try it online! - only really works in a terminal, but you can easily copy/paste from here.

Explanation

This script uses the stringwise XOR operation to capitalise the needed letters in each iteration. First we build the string 'hello world' (which includes \x1bc as an ANSI escape sequence to clear the screen), then we XOR (^) against a string of repeating NUL bytes (repeating as needed, 2 on the first iteration and finishing with 12), followed by a space ($") on all but the 7th iteration (which would remove the space in the middle - well, set it to NUL).

Please note this script contains unprintables, here's a reversible hex dump:

00000000: 736c 6565 7020 7072 696e 7422 1b63 6865  sleep print".che
00000010: 6c6c 6f20 776f 726c 640a 225e 2200 2278  llo world."^"."x
00000020: 245f 2e24 2278 2821 2f37 2f29 666f 7220  $_.$"x(!/7/)for 
00000030: 322e 2e31 32                             2..12