The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-02-2008
zapper222 zapper222 is offline
Registered User
  
 

Join Date: May 2008
Posts: 12
ux2dos

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

Thanks
Zapper
  #2 (permalink)  
Old 05-03-2008
fabtagon fabtagon is offline
Registered User
  
 

Join Date: Apr 2008
Location: European Union/Germany
Posts: 189
man ux2dos
man find (look for "-exec")
  #3 (permalink)  
Old 05-04-2008
zapper222 zapper222 is offline
Registered User
  
 

Join Date: May 2008
Posts: 12
I have tried this but it doesn't work

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

Anyone can provide the correction ??

Thanks
Zapper
  #4 (permalink)  
Old 05-04-2008
fabtagon fabtagon is offline
Registered User
  
 

Join Date: Apr 2008
Location: European Union/Germany
Posts: 189
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 (permalink)  
Old 05-04-2008
zapper222 zapper222 is offline
Registered User
  
 

Join Date: May 2008
Posts: 12
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:04 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0