![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| DOS/Windows CR to a UNIX LF 17 MB text file | tex | Windows & DOS: Issues & Discussions | 9 | 05-22-2008 12:31 AM |
| how to remove ^M from windows text file in unix | pragy1999 | Shell Programming and Scripting | 1 | 04-13-2006 10:04 AM |
| Converting Text File into XML using Unix Shell Scripts | Laud12345 | Shell Programming and Scripting | 10 | 02-16-2005 01:35 PM |
| windows to unix text in subdirectories | rein | Shell Programming and Scripting | 4 | 12-13-2004 06:42 AM |
| converting files from unix to windows | jefft1976 | UNIX for Dummies Questions & Answers | 2 | 12-11-2001 06:29 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I am trying to FTP a text file from a machine running LynxOS and I am having problems with the way windows "sees" the characters. For example this is how windows presents the text:
DevProcRcpClass The boxes are what I am having problems with. When viewing the same file on a Sun workstation the boxes show up as alphabetical charaters and the spaces show up with @ symbols. I set the transfer mode to ascii in a couple of different ftp programs and see the same both ways. I really know nothing about unix and any help would be greatly appreciated. Thanks for your time. |
|
||||
|
Either you're tranferring the file in binary mode rather than ascii mode or you can try using this to fix your problem (sorry I'm a PHP man and don't know a better way off-hand).
Save the following as "unix2dos" filename ------------------------------------ PHP Code:
chmod +x unix2dos ./unix2dos oldfilename.txt newfilename.txt and voila! A dos compatible file ![]() *d11wtq moderates devnetwork php forums btw ![]() |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|