This works here:
Code:
$ for N in {01..10} ; do echo "# $N "; done
# 01
# 02
# 03
# 04
# 05
# 06
# 07
# 08
# 09
# 10
Inside a script, it also works:
Code:
#!/bin/bash
for N in {01..10} ; do
echo "# $N "
done
And this works in a script too:
Code:
#!/bin/bash
for N in {a..f} ; do
echo "# $N "
done
Run using:
or
If you are trying to double-click to run something, then that issue is a problem with the file manager or GUI program.
Don't forget to set the execute permissions on the script file(s). chmod +x /tmp/t
Linux as an OS doesn't care anything about file extensions. Those are handy for humans and some ported Windows programs. For example, if I rename /tmp/t to /tmp/t.pdf ... it still works exactly the same way as before.
Code:
$ ./t.pdf
# a
# b
# c
# d
# e
# f
I can also rename a PDF file to be "book" without any extension, then use evince to open and read it.
Code:
$ evince The_Linux_Command_Line-William_Shotts_1364
Works 100% fine. Can change it to .xls ...
Code:
$ evince The_Linux_Command_Line-William_Shotts_1364.xls
Still works perfectly. It isn't the extension that matters. It is the first few lines of any file that says what it is.
#!/bin/bash ... for bash scripts.
%PDF-1.5 ... for a PDF v1.5 file.
Code:
$ file The_Linux_Command_Line-William_Shotts_1364.xls
The_Linux_Command_Line-William_Shotts_1364.xls: PDF document, version 1.5
See. The file command know what type of data it holds. On Unix systems, this is called "the magic number"
https://en.wikipedia.org/wiki/Magic_..._(programming)
Extensions are handy for humans.