Berkeley CSUA MOTD:Entry 21815
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2024/12/24 [General] UID:1000 Activity:popular
12/24   

2001/7/17 [Computer/SW/Unix] UID:21815 Activity:high
7/16    How come
                some_program | sed 's/.*/&abc/'
        works, but not
                echo `some_program | sed 's/.*/&abc/'`
        in tcsh?
        \_ Try this:
                echo `some_program | sed 's/.\*/&abc/'`
           --- yuen
           \_ Doesn't work...
              \_ No idea.  Actually your original form already works for me in
                 tcsh.  -- yuen
                 \_ Turns out to be some output of some_program that
                    screwed it up.