Documentation & other questions
Tue Sep 29 02:36:00 GMT 1998
I put the following snippet in my .bashrc:
for p in $*
cat $p | tr "\r\n" "\n" > /tmp/$p.tmp
mv /tmp/$p.tmp $p
then, you can do :
and all the .txt files will automagically be converted from DOS to UNIX
Alex Oren wrote:
> I just got on this list so if my questions are not appropriate here, please
> direct me to where they can be (or a FAQ, if there is one).
> Please keep in mind that I am not a UNIX person so I may miss the obvious.
> I installed the Cygwin tools but I can't find any documentation on them. Is
> there any available? A windows help file will be best but any other format is
> fine as long as there is a tool to format/read it.
> Another question: How can I convert text files between UNIX format (LF) and
> DOS/Windows format (CR/LF)? I looked at tr but it seems to me it only
> performs 1-to-1 character translations.
> Have fun,
> For help on using this list (especially unsubscribing), send a message to
> "email@example.com" with one line of text: "help".
For help on using this list (especially unsubscribing), send a message to
"firstname.lastname@example.org" with one line of text: "help".
More information about the Cygwin