var=`date`
pg_dump -U postgres database_name > ~/database_backups/database_name.backup.${var}
new_item_id=$(cat ~/database_backups/database_name.backup.${var}| grep "Item" | awk '{print($1);exit}’)
cat:/Users/karanj/database_backups/database_name.backup。:没有这样的文件或目录