Creating flat text file (ASCII)


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Creating flat text file (ASCII)
# 1  
Old 03-25-2005
Creating flat text file (ASCII)

Hi everybody. I need help and I hope someone is willing to help me out here.

My wholesale company is currently moving to new software. The old software is running on a UNIX platform. We need to migrate data from the UNIX system, but our former software provider refuses to assist the data migration unless we pay a ridiculous fee. My question is:

1) How do I locate files in UNIX
2) Can I copy these files to text files which I can in turn use in for instance Excel?
3) How can I find out if SQL is installed on the machine and if so, how do I activate it?

I guess my questions make me look like a complete idiot, but even so I hope someone can help me out.
# 2  
Old 03-25-2005
Code:
1) How do I locate files in UNIX
2) Can I copy these files to text files which I can in turn use in for instance Excel?
3) How can I find out if SQL is installed on the machine and if so, how do I activate it?

Is this some elaborate homework question? I say this cause this sounds way over the top to be real.

1) How do I locate files in UNIX? - Which UNIX are you using? UNIX is just a big collection of files. You are going to have to get very specific here. Where does you application live? Who is running your shop? Certainly there are developers and DBAs there to help.

2) Can I copy these files to text files which I can in turn use in for instance Excel? -- Sure you can do this. You would of course need to learn to use FTP and some scripting (probably shell, awk or perl). Again, you need help from back office people (developers and DBAs).

3) How can I find out if SQL is installed on the machine and if so, how do I activate it? -- Need to know what DBMS is installed on your machine before you can determine what SQL is available. For example, Oracle uses SQL*PLUS.
# 3  
Old 03-26-2005
I hate to be so blunt, but I dont believe you possess the skills for a migration of this sort. Without some weeks of training.

So far as finding files in Unix. Look in the FAQ section and look for UNIX tutorials.

Your "data" is probably in some DB form either Oracle/Informix/et al... and would need a "cold backup" taken of it. which could be ported via tape or lan to the new host.

Needless to say, all of the answers to your questions depend somewhat on the flavor/version of Unix you are running on.

Post the output of uname -a if you have that command on your flavor.
# 4  
Old 03-29-2005
I already feared it wouldn't be easy. I have a OS/400 background and know on I-Series or AS/400 it is fairly easy to copy DB2 files to text files using SQL and Client-Access software. Hoped it would be as easy on UNIX as well. Guess I hoped wrong! I will try to use the -a command and see if it works and what the output will be. Thanks for your replies so far.
# 5  
Old 03-29-2005
Run uname -a and post the results. Also, what database mgmt software are you using?
# 6  
Old 04-20-2005
My new software provider has kindly offered (after a little subtle persuasion) an expert to migrate the data for me. Thanx anyway for the replies!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Import ASCII 28 delimited text file

I have an ASCII 28 delimited text file(non-printable delimiter) with 4 columns along with the header.I need to open this text file in Excel or any other tool to view each column content. Please help.. Thanks (6 Replies)
Discussion started by: aneeta13
6 Replies

2. UNIX for Dummies Questions & Answers

ArcGIS shapefile *.dbf file to ascii text

Okay, I search around and couldn't find what I needed, so here goes: I have a series of ArcGIS point shapefiles. If I open them in Excel I can save as an Excel or text file and get a 2 column list: POINTID | GRID_CODE 1 | 2.34234 2 | 4.3425 3 | 6.32456 etc... The problem is that I... (3 Replies)
Discussion started by: jbrandt1979
3 Replies

3. Shell Programming and Scripting

Creating Dynamic Variables from a Flat File

Greetings all, Been trying to do my Googling and forum searches but can't seem to lock in on a solution. I have a script that parses a log and collects all the uniq events to a flat file. Some days might have 50 unique events, other days might have 75. (Hence my reference to dynamic.) ... (2 Replies)
Discussion started by: sjrupp
2 Replies

4. Shell Programming and Scripting

reading a csv file and creating a flat file

hi i have written a script for reading a csv file and creating a flat file, suggest if this script can be optimized #---------------- FILENAME="$1" SCRIPT=$(basename $0) #-----------------------------------------// function usage { echo "\nUSAGE: $THIS_SCRIPT file_to_process\n"... (3 Replies)
Discussion started by: mprakasheee
3 Replies

5. Shell Programming and Scripting

`find`, pulling 1st field from ASCII flat file as search/-name?

Hey Everyone! I have searched around for this on Unix.com and Google, and I'm either not phrasing my search properly or this is not as simple as I thought... I have a script that runs on a nightly basis that pulls one field worth of data from an internal MySQL database and populates to an... (2 Replies)
Discussion started by: Gecko12332
2 Replies

6. Shell Programming and Scripting

Random word from a flat text file

Hello, I need to take a random word from a flat text file with words in it seperated by spaces. The code I am using, always gives me the first word. Can anyone please shed some light on this. Here's my code. Thanks echo table roof ceiling jar computer monitor keyboard carpet >... (5 Replies)
Discussion started by: Freakhan
5 Replies

7. Shell Programming and Scripting

(Urgent):Creating flat file using sql script and sqlplus from UNIX Shell Script

Hi, I need help urgently for following issue. Pls help me to resolve this issue. I am calling sql script file(file1.sql) from UNIX Shell Script(script1.ksh) using sql plus and trying to create flat file that contains all records returned from SQL query in SQL script(file1.sql) I given... (6 Replies)
Discussion started by: praka
6 Replies

8. Programming

Reading a binary file in text or ASCII format

Hi All, Please suggest me how to read a binary file in text or ASCII format. thanks Nagendra (3 Replies)
Discussion started by: Nagendra
3 Replies

9. Shell Programming and Scripting

mbox ascii mail text file ?

Hi, I am using "fetchmail" and "procmail" combination to trigger a job based on an input mail.Using fetchmail, incoming mail is downloaded from the mailserver to the local host.Once the mail is flushed,procmail starts execution and thereby triggers the application script. In-between... (3 Replies)
Discussion started by: DILEEP410
3 Replies

10. Shell Programming and Scripting

how to get rid of blank line in a flat text file

Hi, I have a flat text file which contains blank line between each text line. Is there any command to get rid of it? Thanks for your help (11 Replies)
Discussion started by: xfang
11 Replies
Login or Register to Ask a Question