4 examples for yes

{{ score }}
  # Repeatedly outputs "kitty"
yes kitty
        
{{ score }}
  # Repeatedly outputs "y"
yes
        
{{ score }}
  # Output "bro" repeatedly until terminated
yes bro

# Output "y" (default behaviour of no arguments are passed)
yes
        
{{ score }}
  # Copy a line 50 times into a file
yes "Are you a bro?" | head -n 50 > questioning_bro.txt