Congratulations to AcaCandy on her 100,000th post!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen blue screen boot bsod computer connection crash css dell display drive driver drivers email error ethernet excel firefox firefox 3 game hard drive internet internet explorer itunes laptop linux malware monitor network networking nvidia outlook outlook 2003 outlook 2007 outlook express partition problem router slow software sound trojan usb video virus vista windows windows xp wireless
UNIX/Linux
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > UNIX/Linux >
Linux tools to convert file formats


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
lotuseclat79's Avatar
Distinguished Member with 10,463 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
23-Jul-2008, 10:45 AM #1
Linux tools to convert file formats
Linux tools to convert file formats.

About the newline problem and encoding problem re: text file conversions.

Life would be a lot easier if we could live in a Linux-only world and if applications never required data from other sources. However, the need to get data from Windows, MS-DOS, or old Macintosh systems is all too common. This kind of import process requires some conversions to solve file format differences; otherwise, it would be impossible

Read the comments for:
1) a zip method
2) a vi method

Got other methods? Perhaps a sed method to do the conversion - post it here in this thread.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction between a mere artisan or specialist and a real seeker after truth. - Einstein wrote in 1944.

Some say knowledge is power, I say knowledge without action is powerless. - lotuseclat79

Don't confuse action with movement. - Hemingway to Gardner

Imagination is more important than knowledge. - Einstein
Squashman's Avatar
Distinguished Member with 12,689 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
23-Jul-2008, 07:27 PM #2
Google search for SED one liners or AWK one liners. You can do it with both.

I do this alot in Dos batch files because when I use the unix utilites that have been ported to DOS, they still like to output everything with a LF. So the last step in my batch file is usually something like "gawk 1". But in dos batch files you could also do something arbitrary like to do a findstr on some arbitrary string that it will never find in the data. It will then reoutput the data with a CRLF.

Some of this also depends on what version of AWK or SED you are using.

In Windows, if I just want to convert a file from a Unix format to a Windows/Dos format I just use a program called EOL Covnverter. You can find it at totato.com. It is free.
__________________
I hate asking the same question twice!
How to ask questions the smart way!
Microsoft MVP - Windows Shell/User
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 06:14 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.