Re: OT: dash - looping through alphabet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sun, Jul 6, 2014 at 8:52 PM, Karol Blazewicz
<karol.blazewicz@xxxxxxxxx> wrote:
>
>
> You can use
>
> echo $(seq -s '' 1 9)
>
> for number sequences, but I don't think you can do it with letters.

Following this line of thought, one can combine seq with printf to
produce {a..z}:

for i in $(seq 97 122); do
  printf "\x$(printf %x $i)\n"
done


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux