# Read multiple input from CLI :ksh

**URL:** <https://community.unix.com/t/read-multiple-input-from-cli-ksh/327725>\
**Category:** Shell Programming and Scripting\
**Created:** [April 29, 2013, 12:56am UTC](https://community.unix.com/t/read-multiple-input-from-cli-ksh/327725 "2013-04-29T00:56:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bangaram](https://community.unix.com/letter_avatar/bangaram/32/6_449c533f586939b6e5f246632a46421f.png) [@bangaram](https://community.unix.com/u/bangaram)\
**Post date:** [April 29, 2013, 12:56am UTC](https://community.unix.com/t/read-multiple-input-from-cli-ksh/327725/1 "2013-04-29T00:56:31Z")

</div>

Hi folks..

i got a requirement to red multiple directories from STDIN and store them to a variable.

ex:-

echo "Enter directory to add:"  
echo " Enter directory to add:"

read value till there is input and when there is no input close the read loop and store variable into an array

@FS [/ ,/var,/tmp]

any help on this is much appreaciated

---

<div class="post-metadata">

**Author:** ![frank\_rizzo](https://community.unix.com/letter_avatar/frank_rizzo/32/6_449c533f586939b6e5f246632a46421f.png) [@frank\_rizzo](https://community.unix.com/u/frank_rizzo)\
**Post date:** [April 29, 2013, 12:57am UTC](https://community.unix.com/t/read-multiple-input-from-cli-ksh/327725/2 "2013-04-29T00:57:21Z")

</div>

Is this for a class? What have you tried so far? Please post the code.
