YNT: read line from terminal

Koray Sonmez ksonmez at oytek.com.tr
Thu Apr 19 14:00:49 UTC 2007


thanks very much it's work

	-----Özgün İleti----- 
	Kimden: redhat-list-bounces at redhat.com bu kişinin yerine Krishnaprasad_K at Dell.com 
	Gönderilmiş: Per 19/04/2007 14:51 
	Kime: redhat-list at redhat.com 
	Bilgi: 
	Konu: RE: read line from terminal
	
	

	Hi,
	
	        You can store the result of the particular command to a variable in ur bash script. May be the below approach may help u.
	
	value=`(echo password ; echo password) | grub-md5-crypt 2> err | grep -iv pass`
	echo $value
	
	        This may help ur purpose
	
	Regards,
	Krishnaprasad
	-----Original Message-----
	From: redhat-list-bounces at redhat.com [mailto:redhat-list-bounces at redhat.com] On Behalf Of Koray Sonmez
	Sent: Thursday, April 19, 2007 5:20 PM
	To: General Red Hat Linux discussion list
	Subject: read line from terminal
	
	Hi,
	
	i'm writing a script with bash and in my script i try to read output of  /sbin/grub-md5-crypt command. does anybody know how can i read output or line from terminal.
	
	thanks,
	
	koray
	
	
	--
	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