[Image of Linux]
Linux's Witness Ministry
The Personal Web Pages of Chris X. Edwards

ex-CRstrip.pl

--------------------------
#!/usr/bin/perl -w
#cxe- It is a very easy thing to take a file with a bunch of
#cxe- lines and output a continuous data stream.
while (<STDIN> ) { chomp; print;}

#cxe- To do a more specific CR/LF rearrangement, use this form:
#cxe- This strips out all the stupid ^M carraige returns
#while (<STDIN>)
#{ tr/\r//d; print $_, "\n"; }

--------------------------
Return to Program Examples
This page was created with only free, open-source, publicly licensed software.
This page was designed to be viewed with any browser on any system.
Chris X. Edwards ~ January 2003