fork download
  1. # oeis sequence -- fetch sequence from oeis.org
  2. # write sequence items one per line to stdout
  3. # example: to fetch prime numbers: oeis a000040
  4.  
  5. wget -qO- oeis.org/$1/internal | # retrieve sequence
  6. grep "%[STU]" | # delete extra lines
  7. sed 's/^.*<tt>%[STU] //' | # remove html command
  8. awk '{printf "%s", $0}' | # join into one line
  9. tr "," "\n" # each on its own line
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty