[ale] textfiles: dos characters.

Yu, Jerry zyu at ptek.com
Wed Jul 5 19:22:07 EDT 2000



tr -d "\015" < file.dos > file.unix

this just remove all \r instances from the file.dos. \r\n --> \n.
Well, if you do have meaningful \r in the file, (I seldom do), then you
cannot use this.



On Wed, 5 Jul 2000, Justin Russell wrote:

#This script will work (I call it dos2unix):
#
##!/bin/ksh
#ex $1 << end_here
#g/^M/s///g
#wq
#end_here
#
#
#Justin
#
#--
#-----------------------------------------------
# Justin W. Russell
# Engineer Senior, Aerodynamics/CFD
# Lockheed Martin Aeronautics Company
# 86 South Cobb Drive
# Marietta, GA  30063-0685
#
# Tel:  (770) 494-6303
# Fax:  (770) 494-3055
#-----------------------------------------------
#
#
#
#--
#To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.
#

Jerry Yu				mailto: z.yu at ptek.com
Systems Engineer			https://punch/~zyu
PTEK Holdings, Inc.			+1-404-262-8544 (O)

--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list