[ale] Batch processing text files

JK jknapka at kneuro.net
Fri Dec 7 10:37:15 EST 2007


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



More information about the Ale mailing list