Projects / hd2u / Comments

Comments for hd2u

18 May 2001 02:47 teambob

Re: For example
I think this programme is a good idea for a couple of reasons:

1. If you want to do text stripping on a web site a .c programme will be more secure than a shell script using tr

2. This programme skips binary files.

3. You don't need to screw around with temporary files.

4. You can issue a command to do many files. e.g. dos2unix `find /usr/src/somedosstuff` I made a script to do this a few days ago and it *is* very useful.

5. It is reversible.

6. It's here and it's free. :)


>
> % perl -pi -e's/\r$//;' *.txt
> %
> % This will do the RIGHT thing
>
>
> Same thing can be done with a sed
> script. In the age-old USL-descendent
> Unixes, UnixWare has "dtox" to do the
> same thing with a binary stream (xtod is
> the reverse of dtox on UW).
>
> Allan "SCO" Clark


12 Feb 2001 14:47 loopus

Re: For example

> perl -pi -e's/\r$//;' *.txt
>
> This will do the RIGHT thing


Same thing can be done with a sed script. In the age-old USL-descendent Unixes, UnixWare has "dtox" to do the same thing with a binary stream (xtod is the reverse of dtox on UW).

Allan "SCO" Clark

12 Feb 2001 14:30 gaudior

For example
perl -pi -e's/\r$//;' *.txt

This will do the RIGHT thing

11 Feb 2001 09:29 hany

Re: Why?

> Yes, tell me why I should use this
> software when there already is a usable
> command for this called 'tr'.


If you want to do something like
'dos2unix *.txt *.c' quite often,
if you know how to combine 'tr' and
some shell commands to handle those '*' and if you
do not care about little more efficiency then you
should not use this utility.

> Not only
> can I produce the same effects with 'tr'
> but I also get alot more functionality
> for "free".


Yes, with 'tr' you can do same and
you can do even
more. But I do not understand what does that
"free" mean?

22 Jan 2001 05:00 creel

Why?
Yes, tell me why I should use this software when there already is a usable command for this called 'tr'. Not only can I produce the same effects with 'tr' but I also get alot more functionality for "free".

Screenshot

Project Spotlight

ReciJournal

An open, cross-platform journaling program.

Screenshot

Project Spotlight

Veusz

A scientific plotting package.