TIP: Click on subject to list as thread! ANSI
echo: os2user-l
to: All
from: `Mark D. Overholser`
date: 2004-04-15 14:39:38
subject: Re: removing Ctrl-Zs

I would be interested in this utility too, or you might be able to 
upload to HOBBES/LEO???   Maybe look throught the file with an editor to 
see if IBM Copyrights are there??

MarkO

Al Heath wrote:

> 
> 
> 
> 
>>>If I ever knew this I've forgotten long ago: what's the fastest and/or
> 
> easiest way to remove the old DOS Ctrl-Z "end of file"
character from the
> end of a LARGE (well, hundreds) number of files?
> 
> I've used  'fixcrlf.exe' for years.   But, it is another one of those tools
> in my tools directory I don't know where it exactly came from.  Google
> finds things with the same name on the web, but I'm not sure it is the same
> executable as I actually use.  I didn't see it on hobbes.   Anyway, see if
> this sounds useful.
> 
> Description:
>   Converts text files to local or specified standards relative
>   to the characters Carriage Return (CR), Line Feed (LF), and tabs.
> 
>   In OS/2 (and DOS, Windows) the lines of text end with the pair
>   CR and LF, but in UNIX the lines of text end only with LF.
> 
> Syntax:
>   fixcrlf [-r|+r] [-t|+t] [-z|+z] [-d|+d] [-f|+f] [-q] file...
> 
>   +r - Adds carriage control characters before every line feed
>   -r - Removes all carriage control characters
>   +t - Converts spaces to tabs where it will conserve space
>   -t - Converts tabs to spaces
>   +z - Ensures that there is a trailing EOF (control Z) character.
>   -z - Removes trailing EOF (control Z) characters.
>   -d - Preserves file changed date.
>   +d - Updates file changed date.
>   -f - no force (i.e., convert only writable files)
>   +f - Force (i.e., convert readonly files too)
>   -q - Quiet (e.g., no warnings on file not found)
> 
> Defaults:
>   OS/2: +r -t +z -d -f
>   AIX:  -r +t -z -d -f
> 
> Notes:
>   - wildcards are supported in file names
>   - do not run on binary files!
>   - carriage returns which do not preceed line feeds are discarded.
>   - trailing blanks are removed from lines.
> 



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/E8folB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links

 To visit your group on the web, go to:
     http://groups.yahoo.com/group/os2user/

 To unsubscribe from this group, send an email to:
     os2user-unsubscribe{at}yahoogroups.com

 Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 


---
* Origin: Waldo's Place USA Internet Gateway (1:3634/1000)
SEEN-BY: 633/267 270
@PATH: 3634/1000 12 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.