You are here: Foswiki>Computing Web>Tier3WebHome>OneLiners (revision 2)EditAttach

One Liners in Perl and other UNIX programs


Swap the state of an option in /etc/ssh/sshd_config

$ perl -pi -e 's/#(StrictModes\s)yes/\1no/' /etc/ssh/sshd_config

-- TomRockwell - 27 Dec 2005
Edit | Attach | Print version | History: r3 < r2 < r1 | Backlinks | View wiki text | Edit WikiText | More topic actions...
Topic revision: r2 - 13 Oct 2009, ChipBrock

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback