[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Batch processing text files
Joe Bayes wrote:
> 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 "{}" \;
Just curious: is there a particular reason you used a tar
pipeline instead of "cp -a here there"?
-- JK, always eager to learn
--
"What can be asserted without evidence can also be
dismissed without evidence." -- Christopher Hitchens