shell-script-pt
[Top][All Lists]
Advanced

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

Re: [shell-script] Gerar números não aleatorios


From: itamarnet
Subject: Re: [shell-script] Gerar números não aleatorios
Date: 01 Sep 2016 12:47:38 -0700

Nessa linha poderia usar

em awk:
 awk 'BEGIN {for (i=1; i<=9999; i++) printf "0619200%04d\n", i}' 

com sed:
 seq -w 1 9999 | sed 's/^/0619200/'

ou apenas em bash:
 for ((i=1; i<=9999; i++));do printf "0619200%04d\n" $i; done

Além do que já foi sugerido pelos colegas

[]'s
Itamar




reply via email to

[Prev in Thread] Current Thread [Next in Thread]