Quoting Juan Miguel Cacho <[EMAIL PROTECTED]>:
> #_ todos < unixtextfile > dostextfile
> I don't have it, I'll look for it in freshmeat.
Here is a version of todos.c
----------------todos.c---------------------
/* todos.c -
converts text files so that lines ending
with "\n" will end with "\r\n" instead */
#include <stdio.h>
int main()
{ int c;
while ( c=getchar(), c!=EOF ) {
if ( c=='\n') putchar ('\r');
putchar(c)
}
}
------------------end-----------------------
PMana
--------
This mail sent through IMP: mail.ateneo.net
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
- [plug] How do i convert *nix text to msdos text form... Juan Miguel Cacho
- Re: [plug] How do i convert *nix text to msdos ... Mu Florentino
- Re: [plug] How do i convert *nix text to ms... Juan Miguel Cacho
- Re: [plug] How do i convert *nix text t... Pablo Manalastas
- Re: [plug] How do i convert *nix te... Juan Miguel Cacho
- Re: [plug] How do i convert *n... Ambrosio Berdijo Jr.
- [plug] Just a mail test Jun Tanamal
- [plug] swap file froilanr
- Re: [plug] swap file Orlando Andico
- Re: [plug] How do i convert *nix text to msdos ... j . uy
- Re: [plug] How do i convert *nix text to ms... Juan Miguel Cacho
- Re: [plug] How do i convert *nix text to ms... Orlando Andico
- Re: [plug] How do i convert *nix text t... Horatio B. Bogbindero
- Re: [plug] How do i convert *nix text to msdos ... Rafael R. Sevilla
