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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Find duplicates from multuple files with 2 diff types of files ricky007 Shell Programming and Scripting 2 03-04-2008 09:46 AM
unzip particular gzip files among the normal data files thepurple Shell Programming and Scripting 4 11-30-2007 07:17 AM
when I try to run rm on multiple files I have problem to delete files with space umen UNIX for Dummies Questions & Answers 1 09-20-2005 12:20 AM
text files, ASCII files, binary files and ftp transfers Perderabo Answers to Frequently Asked Questions 0 04-08-2004 01:25 PM
A problem regarding compiling C prog. in lynux ... abdul UNIX for Dummies Questions & Answers 1 08-30-2001 07:42 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-29-2005
Registered User
 

Join Date: Jun 2005
Posts: 6
Stumble this Post!
dos files in lynux

Hi..

I have a batch file in lynux where i have a copy command written..then i copied this batch file and run on the ms dos machine..but when i run this batch file its coming bad command or file name..i opened this with notepad then some junk characters are seen..vat i shoud do to doscp this file from lynux? or is there any command like unixt2dos or so? plz help..

with regards,
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-29-2005
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,660
Stumble this Post!
Yes there is unix2dos and dos2unix available on linux. Probably just before transferring your file to windows, you can do a unix2dos on the linux m/c itself.
Reply With Quote
  #3 (permalink)  
Old 06-29-2005
Registered User
 

Join Date: Jun 2005
Posts: 6
Stumble this Post!
unix2dos

Hi..

how to give the command? plz help me am new to this lynux thing..at the $ prompt, i gave unix2dos myfile, its coming bash: unix2dos: command not found..and when i typed man unix2dos its giving no manual entry for unix2dos..

plz plz help!!
Reply With Quote
  #4 (permalink)  
Old 06-29-2005
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,660
Stumble this Post!
The reason could be the PATH settings.

Try this.

Code:
/usr/bin/unix2dos myfile
If you still encounter the same issue,

then try a

Code:
whereis unix2dos
It should give you some results. Try the first unix2dos in the result

-vino
Reply With Quote
  #5 (permalink)  
Old 06-29-2005
Registered User
 

Join Date: Jun 2005
Posts: 6
Stumble this Post!
hi.. i still have the pblm..

when i gave whereis unix2dos it is giving unix2dos: only..vats dis mean? where is it stored..and after going to /usr/bin and gave ls unix2dos it is telling no such files/command or so..pls tell me what to do?

with thanx,
Reply With Quote
  #6 (permalink)  
Old 06-29-2005
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,660
Stumble this Post!
Post the results of

Code:
uname -a
Possibly unix2dos could be in some other directory.

-vino
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:34 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0