Skip to content

Add for using brace or nested brace expansion #58

@khanhnt2

Description

@khanhnt2

There is an other use of for, it's very useful in some case

for char in {a..z}; do
    echo$ char
done

It will be print a b c ... x y z
or

for i in {{a..m},{0..9},{n..z}}; do # don't have any space between commas
    echo $i
done

It will be print a b c ... k l m 0 1 2 ... 7 8 9 n o u ... x y z

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions