for loop in bash
Hello everyone,
As we can use this bash script Code:
#!/bin/bash to generate this output: Code:
1 How can I loop around in bash from 1 to 100 and A to Z all together. so that output could be Code:
1 |
Hi, how about
Code:
#!/bin/bash Code:
printf "%s\n" {1..100} {A..Z} |
@millgates .. thank you very much!!! That worked.
|
See here for all you ever wanted to know about brace expansion:
http://wiki.bash-hackers.org/syntax/expansion/brace And this link covers printf: http://wiki.bash-hackers.org/commands/builtin/printf |
All times are GMT -5. The time now is 08:49 AM. |