[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 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 ?

har du øverst i din sh fil:

#!/bin/bash

?

eller prøv:

bash mitscript.sh






 
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] *