[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: [NOVICE] bash script



On 24 Jan 2012 at 15:04, Frank Damgaard wrote:

> On 2012-01-24 09:28, Danjel Jungersen wrote:
> > Er der en der kan fortælle mig hvorfor at:
> > 
> > for i in {10001..10010..1}
> > do
> >   echo "$i"
> > done
> > 
> > Giver:
> > {10001..10010..1}
> 
> 
> tastet ind fra bash-prompt:
> 
>   for i in {10001..10010..1}; do   echo "$i"; done
> 
> giver det:
> 10001
> 10002
> 10003
> 10004
> 10005
> 10006
> 10007
> 10008
> 10009
> 10010
> 
> 
> Er du sikker på at din "sh" er bash ?
> prøv i terminal at skrive "bash" og så indtaste ?
bash giver intet output.
? giver: "bash: ?: command not found"
bash ?
bash: ?: no such file or directory

> 
> har du øverst i din sh fil:
> 
> #!/bin/bash
> 
> ?
jep
> 
> eller prøv:
> 
> bash mitscript.sh
Det virker også nu, efter at have sat "+x"
:-)

Igen tak for tålmodigheden...

/Danjel
> 
> 
> 
> 
> 
> sslug-novice: Listen for begynder-relaterede spørgsmål
> 




 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2012-02-01, 02:01 CET [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] *