The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Convert UNIX file format to PC format Samtel UNIX for Dummies Questions & Answers 1 08-27-2009 03:29 PM
Unix script to convert .csv file to.xls format moon_friend UNIX for Dummies Questions & Answers 1 12-08-2008 07:09 AM
To convert multi format file to a readable ascii format gaur.deepti UNIX for Dummies Questions & Answers 5 03-25-2008 03:03 PM
Convert UTF8 Format file to ANSI format rajreddy UNIX for Dummies Questions & Answers 9 05-25-2007 09:26 AM
Convert UTF8 Format file to ANSI format rajreddy UNIX for Advanced & Expert Users 1 05-24-2007 07:40 AM

Reply
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 08-27-2009
Samtel Samtel is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 7
Convert UNIX file format to PC format

Hi All,

Is there any way to convert a file which is in UNIX format to a PC format....
Flip command can be used , apart form this command can we have any other way.... like usinf "awk" etc ..... main purpose of not using flip is that my Kshell doesnot support this comamnd....

Last edited by Samtel; 08-27-2009 at 03:18 PM..
  #2 (permalink)  
Old 08-27-2009
Festus Hagen Festus Hagen is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 29
A search would have set you right up!

unix2dos

-Enjoy
fh : )_~
  #3 (permalink)  
Old 08-27-2009
methyl methyl is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 1,184
The method required to convert unix text files to MSDOS format depends on the unix Operating System, the content of the file, and what you are going to do with the file.

A text file FTP can corrupt data by removing high order bits and expanding tabs. Using "awk" or other data manipulation programs such as "unix2dos" then using binary FTP can be safer.

Btw. On HP-UX the command pair are "ux2dos" and "dos2ux".
Reply

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 01:20 PM.


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