ux2dos


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers ux2dos
# 1  
Old 05-02-2008
ux2dos

I am trying to do a ux2dos to several files. Anyone know the syntax for that ??

Thanks
Zapper
# 2  
Old 05-03-2008
man ux2dos
man find (look for "-exec")
# 3  
Old 05-04-2008
I have tried this but it doesn't work

find . -name "*display" -exec ux2dos '{}' > *.txt \;

Anyone can provide the correction ??

Thanks
Zapper
# 4  
Old 05-04-2008
find . -name "*display" -exec ux2dos {} > {}.txt \;

your problem arose from your redirection (>) target: output got redirected to *.txt which extends to a list of all .txt files in directory -> multiple targets -> shell got confused (and would probably not have acted properly if *.txt would extend to just one file)

(no need to escape using '' on modern systems)
# 5  
Old 05-04-2008
OK..........thanks a lot
Actually I am using a very old version of HP unix and I think the '{}' is necessary....but I'll try it both ways.

Zapper
 
Login or Register to Ask a Question

Previous Thread | Next Thread

1 More Discussions You Might Find Interesting

1. HP-UX

Ux2dos script

Hi all, Does anyone know how to convert a good few files in a particular directory (unix) to dos files and place them in another directory? I know this can be done with ux2dos but I am trying to come up with a shell script to do so (13 Replies)
Discussion started by: lcclaj0
13 Replies
Login or Register to Ask a Question