-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Peng Yu wrote: > Hi, > > I have the following file segments. I want to concatenate all the > lines with their next lines, except that it ends with "}}". I want to > use the pattern "\(}}\)[EMAIL PROTECTED]". It seems not working. > > Would you please help me to figure out how to match the lineend without > "}}"? > > Thanks, > Peng > > > 2.3766829304614354*^-12*d^3*Ith^2*z^6 - > 9.163340710959959*^-10*Ith^3*z^6 - 3.0207696015850803*^-10*d* > Ith^3*z^6 + 8.760261318791164*^-11*d^2*Ith^3*z^6 - > 3.492315374248676*^-12*d^3*Ith^3*z^6}} > fw100s200[d_,z_,Ith_] := 0.01515647826357657, 0.08956492396538135, > 246.40722214248873 - 0.48219974209354677*d + > 0.07494738483672195*d^2 - 0.0007155767500598704*d^3 - > 778.7338684688602*Ith + 5.330667362452238*d*Ith - > 0.6096508973274091*d^2*Ith + 0.00429237191519287*d^3*Ith + > 1465.6757219477772*Ith^2 - 15.92585633547399*d*Ith^2 + Well, I am still learning VIM but these 3 commands could do your job, if they are acceptable to you (they work for me!): :1,10s/\n/ \r/g :1,10s/}} /}}/g :1,10s/ \n//g
:) - -- Anupam Srivastava Scientific Coworker Universität Stuttgart Get my public keys: gpg --keyserver subkeys.pgp.net --recv-keys DF8B2AFE 99F8BB81 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFFNtE27GZ7yN+LKv4RAgBQAJ9kEt5G99gxO1eZh9Rs+3XeZDVixQCfSj8p H2FzBiSjkjRSbby//mVRf94= =eR5i -----END PGP SIGNATURE-----