The Gateway to Computer Science Excellence
0 votes
628 views

Which of the following commands will output “onetwothree” ?

  1. for val; do echo-n $val; done < one two three
  2. for one two three; do echo-n-; done
  3. for n in one two three; do echo-n $n; done
  4. for n in one two three {echo –n $ n} 
in Others by Boss (30.2k points)
retagged by | 628 views

1 Answer

+3 votes
Best answer

Answer : C

for n in one two three ; do echo -n $n ; done

Reference  : http://www.itforeveryone.co.uk/quiz.php

by Boss (45.3k points)
selected by

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,645 questions
56,597 answers
195,837 comments
102,140 users