Using enter key in bash script

John Bolton John.Bolton at quest.com
Wed Dec 15 15:23:46 UTC 2010


If you are using bash simply use the read statement. For example:


#!/bin/bash

echo -e "\nDemonstration text.\n"
echo -n "Press ENTER to continue"
read


John

-----Original Message-----
From: redhat-list-bounces at redhat.com [mailto:redhat-list-bounces at redhat.com] On Behalf Of a bv
Sent: Wednesday, December 15, 2010 4:00 AM
To: redhat-list at redhat.com
Subject: Using enter key in bash script

Hi,

I want to write a script which will run a command  that gives some
written information and needs to press enter key to go on keyboard.
Then it will ftp its output etc.

How can i easily make this enter key issue on the script?

Regards

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list




More information about the redhat-list mailing list