MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/a4smlz/eeeeeeeeeeeeee_ee_eeeee/ebhqg01/
r/programminghorror • u/thisGuyCodes • Dec 10 '18
99 comments sorted by
View all comments
Show parent comment
21
I like e.sh's approach
yes e | tr -d '\n'
19 u/agentaileron Dec 10 '18 yes - output a string repeatedly until killed TIL that yes is a thing in bash Time to add a line or two in the bashrc of my friends' laptops, hehe 23 u/ProgrammerBro Dec 10 '18 By default yes prints out a string of y followed by newlines, I think the expected use case to to pipe it to an interactive program and say "yes" to any prompts.
19
yes - output a string repeatedly until killed
TIL that yes is a thing in bash
yes
Time to add a line or two in the bashrc of my friends' laptops, hehe
23 u/ProgrammerBro Dec 10 '18 By default yes prints out a string of y followed by newlines, I think the expected use case to to pipe it to an interactive program and say "yes" to any prompts.
23
By default yes prints out a string of y followed by newlines, I think the expected use case to to pipe it to an interactive program and say "yes" to any prompts.
View all comments
Show parent comment
21
u/JuhaJGam3R Dec 10 '18
I like e.sh's approach
yes e | tr -d '\n'