4 examples for yes

{{ score }}
  # Repeatedly outputs "kitty"
yes kitty
        
{{ score }}
  # Repeatedly outputs "y"
yes
        
{{ score }}
  # Copy a line 50 times into a file
yes "Are you a bro?" | head -n 50 > questioning_bro.txt
        
{{ score }}
  # Output "bro" repeatedly until terminated
yes bro

# Output "y" (default behaviour of no arguments are passed)
yes