04-25-2010
Thanks steadyonabix ...i was just curious if it can be done through Unix shell scripting...because this can be done through C++.
I ve created a macro in XLS and is getting the output as desired.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello people,
Need favour. The problem I have is that, I need to develop a unix shell script that performs recurring exports of data from a csv file to an oracle database. Basically, the csv file contains just the first name and last name will be dumped to an Unix server. The data from these... (3 Replies)
Discussion started by: vinayagan
3 Replies
2. Shell Programming and Scripting
Could any one help me in basic shell script to export text file data to csv.
I need to export only particular data from text file to csv column.
I am a newbie to UNIX could anyone help me with sample script code (3 Replies)
Discussion started by: l_jayakumar
3 Replies
3. Shell Programming and Scripting
Since i'm new to scripting i'm findind it difficult to code a script. The script has to be an executable with 2 paramters passed to it.The Parameters are
1. The Control file name(.ctl file)
2. The Data file name(.csv file)
Does anybody have an idea about it? :confused: (3 Replies)
Discussion started by: Csmani
3 Replies
4. Shell Programming and Scripting
I have written a k shell program which is executing a sql and exporting data in numeric form like 0412323444 into .csv file. the problem i am facing is that , the data is coming in excel formatted in scientific form like 4.1+E08,while my requirement is to store data as such 0412323444 in excel ( no... (5 Replies)
Discussion started by: Deepak_Rastogi
5 Replies
5. Shell Programming and Scripting
Hi,
I have a .csv file created by a script with data in a tabular format.
I need to insert all the value into mysql database which is running in a different machine.
what is the command to export the .csv file into database using shell script.
Thanks in advance. (3 Replies)
Discussion started by: ahamed
3 Replies
6. Shell Programming and Scripting
I need to read data from a file called "test.csv" through shell script where the file contains values like name,price,descriptor etc. There are rows where descriptor (& in some rows name) are written as string & other characters like "car_+" OR "bike*" etc where it should contains strings like... (3 Replies)
Discussion started by: raj100
3 Replies
7. UNIX for Dummies Questions & Answers
Hi Guys,
I am new to shell script.I need your help to write a shell script.
I need to write a shell script to extract data from a .csv file where columns are ',' separated.
The file has 5 columns having values say column 1,column 2.....column 5 as below along with their valuesm.... (1 Reply)
Discussion started by: Vivekit82
1 Replies
8. UNIX for Dummies Questions & Answers
Hi Guys,
I am new to shell script.I need your help to write a shell script.
I need to write a shell script to extract data from a .csv file where columns are ',' separated.
The file has 7 columns having values say column 1,column 2.....column 7 as below along with their values.
Name, Address,... (7 Replies)
Discussion started by: Vivekit82
7 Replies
9. Shell Programming and Scripting
Hi everyone,
I have a csv file which has data with different heading and column names as below.
Static Data Ingested
,,,,,,,,,,,,Known Explained Rejections
Column_1,column_2,Column_3,Column_4,,Column_6,Column_7,,% Column_8,,Column_9 ,Column_10 ,... (14 Replies)
Discussion started by: Vivekit82
14 Replies
10. Shell Programming and Scripting
I have input data looks like this which is a part of a csv file
7,1265,76548,"0102:04"
8,1266,76545,"0112:04"
I need to make the output data should look like this and the output data will be part of text file:
7|1265000 |7654899 |A|
8|12660000 |76545999 |B|
The logic behind the... (6 Replies)
Discussion started by: RJG
6 Replies
LEARN ABOUT CENTOS
tk_nametowindow
Tk_Name(3) Tk Library Procedures Tk_Name(3)
__________________________________________________________________________________________________________________________________________________
NAME
Tk_Name, Tk_PathName, Tk_NameToWindow - convert between names and window tokens
SYNOPSIS
#include <tk.h>
Tk_Uid
Tk_Name(tkwin)
char *
Tk_PathName(tkwin)
Tk_Window
Tk_NameToWindow(interp, pathName, tkwin)
ARGUMENTS
Tk_Window tkwin (in) Token for window.
Tcl_Interp *interp (out) Interpreter to use for error reporting.
const char *pathName (in) Character string containing path name of window.
_________________________________________________________________
DESCRIPTION
Each window managed by Tk has two names, a short name that identifies a window among children of the same parent, and a path name that
identifies the window uniquely among all the windows belonging to the same main window. The path name is used more often in Tk than the
short name; many commands, like bind, expect path names as arguments.
The Tk_Name macro returns a window's short name, which is the same as the name argument passed to Tk_CreateWindow when the window was cre-
ated. The value is returned as a Tk_Uid, which may be used just like a string pointer but also has the properties of a unique identifier
(see the manual entry for Tk_GetUid for details).
The Tk_PathName macro returns a hierarchical name for tkwin. Path names have a structure similar to file names in Unix but with dots
between elements instead of slashes: the main window for an application has the path name "."; its children have names like ".a" and ".b";
their children have names like ".a.aa" and ".b.bb"; and so on. A window is considered to be a child of another window for naming purposes
if the second window was named as the first window's parent when the first window was created. This is not always the same as the X window
hierarchy. For example, a pop-up is created as a child of the root window, but its logical parent will usually be a window within the
application.
The procedure Tk_NameToWindow returns the token for a window given its path name (the pathName argument) and another window belonging to
the same main window (tkwin). It normally returns a token for the named window, but if no such window exists Tk_NameToWindow leaves an
error message in interp->result and returns NULL. The tkwin argument to Tk_NameToWindow is needed because path names are only unique
within a single application hierarchy. If, for example, a single process has opened two main windows, each will have a separate naming
hierarchy and the same path name might appear in each of the hierarchies. Normally tkwin is the main window of the desired hierarchy, but
this need not be the case: any window in the desired hierarchy may be used.
KEYWORDS
name, path name, token, window
Tk Tk_Name(3)