-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Gavin Carr wrote:
> 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'
Wouldn't that need to be:
sed s/this/that/g file | ssh [EMAIL PROTECTED] 'cat - > /home/someplace'
^^^
- --
dave.
- ------------------------------------------------------------------------
reality-distortion field: n.
An expression used to describe the persuasive ability of managers like
Steve Jobs. Those close to these managers become passionately committed
to possibly insane projects, without regard to the practicality of their
implementation or competitive forces in the marketplace.
- ------------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFE2YfshPPdWeHRgaoRAowUAJ0VCLEjdsFGGwBM/IPXbuAc1RBkzQCeNukF
+rhQKrB+jqxVg45pIJdxgF0=
=wTSg
-----END PGP SIGNATURE-----
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html