  | | | help editing files in linux!! | help editing files in linux!! 2006-03-29 - By Stuart Sears
Back -- --BEGIN PGP SIGNED MESSAGE-- -- Hash: SHA1
mike wrote: > i'm ftping a linux config file over to windows and editing it in > windows. when i send it back to linux i see all these ^M characterse in > the doc. how do i edit it in a safe way or how do i prevent the > garbling on the return back to linux?
there are many ways to achieve this... you could try sed -i.dos 's/\r$//' filename (replace <cr><lf> with the standard <lf>) - the original should be backed up as filename.dos, just for safety
regards
Stuart - -- Stuart Sears RHCA RHCX To err is human, to forgive is Not Company Policy. -- --BEGIN PGP SIGNATURE-- -- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFEKoELamPtx1brPQ4RAsgPAJ4pll1FjNl4jnq3PPxu2dMVCzrHVACdHx0v YTkeLPdbqIKTpYmFJYDldWg= =nwdB -- --END PGP SIGNATURE-- --
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ Redhat-install-list mailing list Redhat-install-list@(protected) https://www.redhat.com/mailman/listinfo/redhat-install-list To Unsubscribe Go To ABOVE URL or send a message to: redhat-install-list-request@(protected) Subject: unsubscribe
|
|
 |