4 examples for yes
# Copy a line 50 times into a file yes "Are you a bro?" | head -n 50 > questioning_bro.txt
# Output "bro" repeatedly until terminated yes bro # Output "y" (default behaviour of no arguments are passed) yes
# Copy a line 50 times into a file yes "Are you a bro?" | head -n 50 > questioning_bro.txt
# Output "bro" repeatedly until terminated yes bro # Output "y" (default behaviour of no arguments are passed) yes