Thread: How to enter many variables into a bash script?
hi
if have script this:-
i run this:-code:#!/bin/bash sentence=$1" "$2" "$3 echo $sentence
it gives correct output:- the black catcode:./script.sh black cat
but, if sentence doesn't contain 3 words.
method used if number of words in sentence changes each time?
the variable looking $@
it's buried deep down in manual bash can find if know exists.![]()
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help How to enter many variables into a bash script?
Ubuntu
Comments
Post a Comment