[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] [BASH] [SOLVED] prompte for yes/no (y/n)



On Thu, 20 Jul 2006 13:06:53 +0200, Kristian Nørgaard <sslug@sslug> wrote:

read -n 1 -p "Overwrite [Y/n]? " SVAR
 Svaret ligger så i ${SVAR}
 Mere info findes i bash(1)

Tak Hans

Jeg kendte godt 'read' men savnede præcist lidt info om options etc.
( Hvorfor findes der ikke en 'man 1 read' ? Måske fordi 'read' er indbygget i bash, men ikke desto mindre så er 'man 1 bash' jo noget uoverskuelig IMHO )

Hvis du skulle være så heldig at ligge inde med O'Reilys "Linux in a Nut Shell" så kan jeg anbefale afsnittet om Bash, der IMHO er noget bedre end man og info (hvis der da er en info til Bash)


--
Med venlig hilsen
/Zmit/
RLU # 314205


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2006-08-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *