read & bash script, untested