QuestionQ65Verified/Essential CommandsCopy linkReport a problemAsk AstroTutorSave questionWhat output does the following command produce? for token in a b c; do echo -n $\{token\}; done AanbncnBabcC$token$token$tokenD{a}{b}{c}Ea b cShow AnswerAnswerExplanationThe for loop iterates over a, b, and c. On each iteration, ${token} expands to the current value, and echo -n prints it without a trailing newline, producing abc.Show comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion