Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jun 2001 08:22:24 -0700 (PDT)
From:      Linh Pham <lplist@closedsrc.org>
To:        Don Croyle <croyle@gelemna.org>
Cc:        James Housley <jim@thehousleys.net>, Damien Tougas <damien@carroll.com>, Laura Gioia <laura@satori.inet.it>, <questions@FreeBSD.ORG>, G D McKee <freebsd@gdmckee.com>
Subject:   Re: ^M
Message-ID:  <Pine.BSF.4.33.0106060819370.75055-100000@q.closedsrc.org>
In-Reply-To: <86vgm9ekzh.fsf@emerson.gelemna.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2001-06-06, Don Croyle scribbled:

# If this is something you need to do frequently,
#
# perl -pi -e 's/\r//' filename (to remove the ^Ms)
# perl -pi -e 's/\n/\r\n/' filename (to put them back)

That or install the unix2dos ports under /usr/ports/converters/unix2dos

Once installed, run 'dos2unix filename' to remove the '^M' or,
run 'unix2dos filename' to re-add the '^M'

-- 
Linh Pham
[lplist@closedsrc.org]

// 404b - Brain not found


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0106060819370.75055-100000>