From: Dana Merrick Date: 2008-05-14T05:31:25+09:00 Subject: Switch Two Lines in a File --------------enig40D02BF0BD9222223E3A2E8D Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Hey guys, I'm trying to write a script to switch two lines in a file, and for some = reason am having difficulty grokking it. I have an ugly start, which I'll post if you want, but it's over thirty=20 lines long and still doesn't work. I'm sure there is a very short, very=20 simple, very Ruby solution to this, and I'm sure one of you has it. So I'm going to cheat and ask you guys. Any ideas? -Dana --=20 Dana Merrick - System Administrator Integrated Computer Solutions, Inc. 54B Middlesex Tpke, Bedford, MA 01730 617.621.0060 x112 - http://www.ics.com --------------enig40D02BF0BD9222223E3A2E8D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iEYEARECAAYFAkgp+p0ACgkQ7b+8UB5G/wMsiACgnc3Iy+ozvU4HOxs26EKOPoOp 7iIAniIxZuEEBGcDWwFbQFFGKi2yeQb5 =9znc -----END PGP SIGNATURE----- --------------enig40D02BF0BD9222223E3A2E8D--