[Techtalk] ed < file

Dan Richter daniel.richter at wimba.com
Wed Nov 13 12:53:16 EST 2002


Now I'm really confused. Standard "ed" commands work when piping from a file:
   ed filename < commands.txt
but not like this:
   (cat <<EOF;) | ed filename
   > 1,$s/foo/bar/g
   > w
   > q
   > EOF

========== Dan Richter ============== mailto:Dan at wimba.com ===========
   Do I know what's in this bill? Are you kidding? Only God knows...
       - U.S. Senator Robert Byrd, when asked if he knew the
         contents of a $520 billion, 4000-page spending bill 




More information about the Techtalk mailing list