Skip to main content
Gilles edited my response and the result made no sense.
Source Link
Jim Paris
  • 14.6k
  • 6
  • 39
  • 38

If you want to execute a d 1 through d 100, you could generate that sequence of commands with seq and pipe it directly to mail:

i=1; while [ $i -le 100 ]; do echo d $i; i=$(($i+1)); done | mail

If you want to execute a d 1 through d 100, you could generate that sequence of commands with seq and pipe it directly to mail:

i=1; while [ $i -le 100 ]; do echo d $i; i=$(($i+1)); done | mail

If you want to execute a d 1 through d 100, you could generate that sequence of commands and pipe it directly to mail:

i=1; while [ $i -le 100 ]; do echo d $i; i=$(($i+1)); done | mail
seq is GNU-only, there's no such utility on Solaris
Source Link
Gilles 'SO- stop being evil'
  • 865.4k
  • 205
  • 1.8k
  • 2.3k

If you want to execute a d 1 through d 100, you could generate that sequence of commands with seq and pipe it directly to mail:

seqi=1; -fwhile "d[ %g"$i 1-le 100 ]; do echo d $i; i=$(($i+1)); done | mail

If you want to execute a d 1 through d 100, you could generate that sequence of commands with seq and pipe it directly to mail:

seq -f "d %g" 1 100 | mail

If you want to execute a d 1 through d 100, you could generate that sequence of commands with seq and pipe it directly to mail:

i=1; while [ $i -le 100 ]; do echo d $i; i=$(($i+1)); done | mail
Source Link
Jim Paris
  • 14.6k
  • 6
  • 39
  • 38

If you want to execute a d 1 through d 100, you could generate that sequence of commands with seq and pipe it directly to mail:

seq -f "d %g" 1 100 | mail