Pages

mardi 10 janvier 2012

give input interative in shell

1) printf "Input1\nInput2\nInput3\n1\n" | ~/script -dir dirr
THis will give 4 inputs, ie., Input1, Input2, Input3, 1, to the script. This means that the script will need these four inputs for running.

Aucun commentaire:

Enregistrer un commentaire