Interesting one. Both sed and awk has treat EOF as a line terminator so either of these will work:
awk '{print}' junk
sed '' junk
but sam doesn't seem to regard a line without a newline as
having an end, so its not simple here:
{ echo ',x/$?\n/ c/\n/' ; echo '1,$p' } | sam -d junk >[2] /dev/null
-Steve
