Hi there.
For loop in Ubuntu works fine directly from the command line. But it doesn't when placed in the shell script.
Any ideas anyone ?
user@server:~/wtest# for i in {1..10};do echo "$i";done
1
2
3
4
5
6
7
8
9
10
cat script.sh
#!/bin/bash
for i in {1..10};do echo "$i";done
user@server:~/wtest# sh script.sh
{1..10}
Bookmarks