On Wed, Aug 09, 2006 at 04:42:13PM +1000, Michael Lake wrote: > Hi all > > I am trying to do this: > > cat file | sed s/this/that/g | scp - [EMAIL PROTECTED]:/home/someplace/ > > As I want to replace some strings in file and copy it to another server in > a Makefile line. It looks like scp doesn't recognise - as "take input from > its stdin". > > How can I do what I intend?
sed s/this/that/g file | ssh [EMAIL PROTECTED] 'cat > /home/someplace' Cheers, Gavin -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
