[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Batch processing text files
Jerry Yu writes:
>dos2unix converts the file in-place, therefore the structure ( assume you
>meant directory structure) is intact.
But I thought he wanted the structure in a new location, not replacing
the old one.
I would do the following:
mkdir converted
tar cf - in |(cd converted ; tar xf -)
cd converted
find ./ -type f -exec unix2dos "{}" \;
Joe
--
Joe Bayes -- jbayes at spoo.mminternet.com