Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

Commonmark migration
Source Link

#Pure Bash (no external utilities), 25

Pure Bash (no external utilities), 25

Based on @SophiaLechner's answer, this also prints a good number of ducks.

@OlivierDulac's idea to use the script shell PID as stored in the $ parameter saves 5 bytes.

echo "${$//?/duck
}"goose

Try it online.

#Pure Bash (no external utilities), 25

Based on @SophiaLechner's answer, this also prints a good number of ducks.

@OlivierDulac's idea to use the script shell PID as stored in the $ parameter saves 5 bytes.

echo "${$//?/duck
}"goose

Try it online.

Pure Bash (no external utilities), 25

Based on @SophiaLechner's answer, this also prints a good number of ducks.

@OlivierDulac's idea to use the script shell PID as stored in the $ parameter saves 5 bytes.

echo "${$//?/duck
}"goose

Try it online.

added 86 characters in body
Source Link
Digital Trauma
  • 73.7k
  • 10
  • 116
  • 268

#Pure Bash (no external utilities), 3025

Based on @SophiaLechner's answer, this also prints a good number of ducks:.

@OlivierDulac's idea to use the script shell PID as stored in the $ parameter saves 5 bytes.

echo "${RANDOM$//?/duck
}"goose

Try it online Try it online.

#Pure Bash (no external utilities), 30

Based on @SophiaLechner's answer, this also prints a good number of ducks:

echo "${RANDOM//?/duck
}"goose

Try it online.

#Pure Bash (no external utilities), 25

Based on @SophiaLechner's answer, this also prints a good number of ducks.

@OlivierDulac's idea to use the script shell PID as stored in the $ parameter saves 5 bytes.

echo "${$//?/duck
}"goose

Try it online.

Source Link
Digital Trauma
  • 73.7k
  • 10
  • 116
  • 268

#Pure Bash (no external utilities), 30

Based on @SophiaLechner's answer, this also prints a good number of ducks:

echo "${RANDOM//?/duck
}"goose

Try it online.

AltStyle によって変換されたページ (->オリジナル) /