Differences between version 41 and revision by previous author of BashNotes.
Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History
Newer page: | version 41 | Last edited on Thursday, August 3, 2006 10:42:13 am | by IanMcDonald | Revert |
Older page: | version 40 | Last edited on Thursday, August 3, 2006 10:10:10 am | by CraigBox | Revert |
@@ -319,9 +319,9 @@
</verbatim>
!! How do I feed "s to the other end of an SSH session?
-I have a bunch of remote machines with a config gile
that has some <tt>OPTIONS=something</tt>, and I want to set them all across-the-board to <tt>OPTIONS="foo"</tt>.
+I have a bunch of remote machines with a config file
that has some <tt>OPTIONS=something</tt>, and I want to set them all across-the-board to <tt>OPTIONS="foo"</tt>.
Locally, I would use <tt>sed -i -e 's/OPTIONS=.*/OPTIONS="foo"/' file</tt>. This is hard to send over SSH however, as bash(1) locally likes to eat all your quotes, so they never reach the other end.
PerryLorier's most bodacious answer: