Create files with one command

I whant a create some files in the certain range.
For example, begin 8811 and finishing 8878
I know one good decision

touch 88{11,12,13,14,15,16,...,...,78}

I try touch 88[11-78], but i don't have results :frowning: Bash create file with name 88[11-78] :slight_smile:
But it very long command :frowning: I wanna create it easy
This is possible ?

Just try with looping... eg. as below, it will help to create file from 8811 to 8878. Hope this will help...

i=11
while [ i -lt 79 ];do
touch 88$i
i=`expr $i + 1`
done

only a little typo.... :wink:

Good catch... DukeNuke2. Thanks! :slight_smile:

bash, zsh, ksh93:

touch {8811..8878}

nice one! but it only works in zsh for me... not in bash or ksh. but anyway, a really nice one :wink:

Yes,
it depends on your bash/ksh version:

zsh 4.3.4% bash
bash 3.2.25(1)$ echo {1..3}
1 2 3
bash 3.2.25(1)$ ksh
$ print ${.sh.version}
Version M 1993-12-28 r
$ echo {1..3}
1 2 3
$ mksh
$ print $KSH_VERSION
@(#)MIRBSD KSH R29 2007/05/24
$ echo {1..3}
{1..3}
$ pdksh
$ echo {1..3}
{1..3}

In some shells the brace expansion generates letters (and other characters) too:

zsh 4.3.4% print {a-c}
{a-c}
zsh 4.3.4% setopt braceccl
zsh 4.3.4% print {a-c}    
a b c
zsh 4.3.4% bash
bash 3.2.25(1)$ echo {a..c}
a b c
bash 3.2.25(1)$ ksh
$ echo {a..c}    
a b c
zsh 4.3.4% print {a--z}
. / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z
zsh 4.3.4% bash+william 
bash 3.00.0(2)-bashdiff-1.44$ echo {a--z}
a b c d e f g h i j k l m n o p q r s t u v w x y z