The Gateway to Computer Science Excellence
0 votes

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 (31.2k points)
retagged by | 645 views

1 Answer

+3 votes
Best answer

Answer : C

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

Reference  :

by Boss (45.5k 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,834 questions
57,838 answers
108,331 users