Can any bash experts tell me what is wrong with the following lines? $mysqlbinclient -e 'SHOW DATABASES' | sed 's/|//g' | grep -v 'Database' \ | while read dbname; do The problem seems to lie on the second line. $mysqlbinclient is a valid variable. Any help is greatly appreciated. Thanks Chris