converting line-feed to cr/lf in a file

Maarten Litmaath maart at cs.vu.nl
Tue Oct 24 14:34:32 AEST 1989


	$ cat xenix-to-dos
	:
	exec sed 's/$/^M/' ${1+"$@"}
	$ cat dos-to-xenix
	:
	exec sed 's/.$//' ${1+"$@"}
	$

(where ^M stands for ctrl-M)
-- 
A symbolic link is a POINTER to a file, | Maarten Litmaath @ VU Amsterdam:
 a hard link is the file system's GOTO. | maart at cs.vu.nl, mcsun!botter!maart



More information about the Comp.unix.xenix mailing list