Command line example: $ sqlite3 -line -cmd 'select * from zip limit 1' database.sqdb < `which echo` ".exit"> output