Unix / Linux

Friday, August 31, 2007

Read from standard input

This if you already push some data with outputstream intot he script it will read it, otherwise will ask the user to enter data

while read line; do
    cp "$line" /tmp
    echo $line
done

0 Comments:

Post a Comment

<< Home