I have a list written in this way List=(_H He Li ... etc) what I want is to make a condition that let me make list of number {first..final..step} for each items in the list. What I have done is; if ["$e" -eq "_H"]; then set A={1..10} elif ["$e" -eq "He"]; then set A={3..12} etc fi ,But it is not working!, I get "./file.sh: line 28: [_H: command not found". What can I do?
Aucun commentaire:
Enregistrer un commentaire