Sponsored Content
Top Forums Shell Programming and Scripting Converting Tab delimited file to Comma delimited file in Unix Post 96153 by charan81 on Wednesday 18th of January 2006 06:28:08 AM
Old 01-18-2006
Vino..No Luck..

Let me tell u my requirement..

I have a file dmlog.txt with data like this

LOAD_STAGE STAGE_LOAD COMPLETE U0 10-OCT-05
LOAD_STAGE_A D_CA_PRODUCT COMPLETE U0 10-OCT-05
LOAD_STAGE_B D_CB_PRODUCT COMPLETE U0 10-OCT-05

Now i need to convert it to

LOAD_STAGE,STAGE_LOAD,COMPLETE,U0,10-OCT-05
LOAD_STAGE_A,D_CA_PRODUCT,COMPLETE,U0,10-OCT-05
LOAD_STAGE_B,D_CB_PRODUCT,COMPLETE,U0,10-OCT-05

Can u explain me on how to proceed with this Example.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Converting Space delimited file to Tab delimited file

Hi all, I have a file with single white space delimited values, I want to convert them to a tab delimited file. I tried sed, tr ... but nothing is working. Thanks, Rajeevan D (16 Replies)
Discussion started by: jeevs81
16 Replies

2. Shell Programming and Scripting

Retrieving values from tab-delimited file in unix script

Hi I am trying to retrieve values from a tab-delimited file.I am using while read record value=`echo $record | cut -f12` done Where 12 is the column no i want retieve and record is one line of the file. But it is returning the full record. Plz help (4 Replies)
Discussion started by: akashtcs
4 Replies

3. Shell Programming and Scripting

Converting comma separated to pipe delimited file

Hi, I came across a very good script to convert a comma seperated to pipe delimited file in this forum. the script serves most of the requirement but looks like it does not handle embedded double quotes and commas i.e if the input is like 1234, "value","first,second", "LDC5"monitor",... (15 Replies)
Discussion started by: anijan
15 Replies

4. Shell Programming and Scripting

Help with converting Pipe delimited file to Tab Delimited

I have a file which was pipe delimited, I need to make it tab delimited. I tried with sed but no use cat file | sed 's/|//t/g' The above command substituted "/t" not tab in the place of pipe. Sample file: abc|123|2012-01-30|2012-04-28|xyz have to convert to: abc 123... (6 Replies)
Discussion started by: karumudi7
6 Replies

5. Shell Programming and Scripting

how to convert comma delimited file to tab separator

Hi all, How can i convert comma delimited .csv file to tab separate using sed command or script. Thanks, Krupa (4 Replies)
Discussion started by: krupasindhu18
4 Replies

6. Shell Programming and Scripting

How to make tab delimited file to space delimited?

Hi How to make tab delimited file to space delimited? in put file: ABC kgy jkh ghj ash kjl o/p file: ABC kgy jkh ghj ash kjl Use code tags, thanks. (1 Reply)
Discussion started by: jagdishrout
1 Replies

7. UNIX for Dummies Questions & Answers

Need help with tab delimited file in unix

Hi, I need urgent help with a tab delimited file I am working on. This is the file : TTTT|YYYYYYY|jargon-journal|MP0000000UID||"j1, j2, j3" I need th following output: TTTT|YYYYYYY|jargon-journal|MP0000000UID||ji TTTT|YYYYYYY|jargon-journal|MP0000000UID||j2... (8 Replies)
Discussion started by: rayarnab
8 Replies

8. UNIX for Dummies Questions & Answers

Need to convert a pipe delimited text file to tab delimited

Hi, I have a rquirement in unix as below . I have a text file with me seperated by | symbol and i need to generate a excel file through unix commands/script so that each value will go to each column. ex: Input Text file: 1|A|apple 2|B|bottle excel file to be generated as output as... (9 Replies)
Discussion started by: raja kakitapall
9 Replies

9. Shell Programming and Scripting

Help/Advise please for converting space delimited string variable to comma delimited with quote

Hi, I am wanting to create a script that will construct a SQL statement based on a a space delimited string that it read from a config file. Example of the SQL will be For example, it will read a string like "AAA BBB CCC" and assign to a variable named IN_STRING. I then concatenate... (2 Replies)
Discussion started by: newbie_01
2 Replies

10. UNIX for Beginners Questions & Answers

Replace a column in tab delimited file with column in other tab delimited file,based on match

Hello Everyone.. I want to replace the retail col from FileI with cstp1 col from FileP if the strpno matches in both files FileP.txt ... (2 Replies)
Discussion started by: YogeshG
2 Replies
gnome-calculator(1)						   User Commands					       gnome-calculator(1)

NAME
gnome-calculator, gcalctool - perform basic, financial, and scientific calculations SYNOPSIS
gnome-calculator [-a accuracy] [-D] [-E] [gnome-std-options] DESCRIPTION
The Calculator application is multifunctional and can handle different types of mathematical approaches. Calculator has the following modes: Basic Mode Provides standard calculator functions. You can store numbers in 10 different memory registers, and easily retrieve and replace the numbers in the memory registers. Basic Mode is the default mode. You can use all of the Basic Mode functions in each of the other modes. Financial Mode Provides several complex financial functions. Scientific Mode Provides many additional mathematical functions, including trigonometric and logical functions. You can also store your own functions and constants, when you use Scientific Mode. EXTENDED DESCRIPTION
On startup, Calculator uses the following configuration resources stored in a GConf database. Resource: /schemes/apps/gcalctool/accuracy Values: Accuracy value Description: The number of digits displayed after the numeric point. This value must be in the range 0 to 9. Resource: /schemes/apps/gcalctool/base Values: Numeric Base Description: The initial numeric base. Valid values are "BIN" (binary), "OCT" (octal), "DEC" (deci- mal), and "HEX" (hexadecimal). Resource: /schemes/apps/gcalctool/display Values: Display mode Description: The initial display mode. Valid values are "ENG" (engineering), "FIX" (fixed-point), and SCI" (scientific). Resource: /schemes/apps/gcalctool/mode Values: Mode Description: The initial calculator mode. Valid values are "BASIC", "FINANCIAL", and "SCIENTIFIC". Resource: /schemes/apps/gcalctool/showzeroes Values: true, false (true) Description: Whether to show trailing zeroes after the numeric point in the display value. Resource: /schemes/apps/gcalctool/showregisters Values: true, false (true) Description: Whether to display the memory register window when Calculator starts. Resource: /schemes/apps/gcalctool/trigtype Values: Trig. type Description: The initial trigonometric type. Valid values are "DEG" (degrees), "GRAD" (grads), and "RAD" (radians). Any constants or functions that the user defines are also stored in the GConf database. OPTIONS
The following options are supported: -a accuracy Specifies the number of digits displayed after the numeric point. This value must be in the range 0 to 9. -D Enable debug mode. -E Enable debug mode in the multiple-precision arithmetic package. gnome-std-options Standard options available for use with most GNOME applications. See gnome-std-options(5) for more information. EXAMPLES
Example 1: Launching Calculator example% gnome-calculator EXIT STATUS
The following exit values are returned: 0 Application exited successfully >0 Application exited with failure FILES
The following files are used by this application: /usr/bin/gnome-calculator Executable for Calculator. ~/.gcalctoolrc User-specific resources for customizing the appearance and color of Calculator. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-calculator | +-----------------------------+-----------------------------+ |Interface stability |External | +-----------------------------+-----------------------------+ SEE ALSO
Calculator Manual Latest version of the GNOME Desktop User Guide for your platform. gnome-std-options(5) NOTES
Written by Glynn Foster and Rich Burridge, Sun Microsystems Inc., 2003. SunOS 5.10 1 Oct 2003 gnome-calculator(1)
All times are GMT -4. The time now is 01:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy