All pastes #196820 Raw Edit

Untitled

public text v1 · immutable
·published 2006-10-10 22:09 UTC
rendered paste body
#!/bin/sh
in=42
for i in 1 2 3 4 5 6 7 8 9 10; do
  out=`perl -e 'print "A" x '$i'000, "\n";'`
  echo $in | ${SED:-sed} "s@$in@$out@" >/dev/null
  if [ $? -ne 0 ]; then
    echo "sed fails at ${i}000 chars" >&2
    exit 1
  fi
done