print letters and number on same field with bash script -
i'm trying create bash script below expected output ..which last digit contains numbers , letters
id 1a id 1b id .. id 1z id 11 id 12 id 13 id .. id 2a
i try below script doesn't work
#!/bin/bash id in {1..9}{a..z 1 2 3 4 5 6 7 8 9} echo "id $id" done
just use nested loop.
for in {1..9}; j in {a..z} {1..9}; id=$i$j echo "id $id" done done
Comments
Post a Comment