Ruby Foundations: More Topics
-
Create Questions file with specified number of questions:
touch 'questions.rb' printf "# frozen_string_literal: true\n" > "questions.rb" for i in {1..10}; do printf "\n# ***\nputs \"%s* Question $i *\"\n# ...\n" "\n" >> "questions.rb"; done