I have a program that calculates shipping cost for an item and prints the information to a file. I cannot seem to get the lines to print with equal spacing in columns.
I need data like this to be aligned into columns:
Optical Mouse 5 A $25
Compaq Presario 3... (2 Replies)
Hi,
I am trying to add space after 3rd and 6th column for editing a file in special format. How should I achieve in VI?. So, is it possible to do in it in sed ?
thanks
vipa (1 Reply)
We recieve some logs on our windows box via FTP on a daily basis, in the same directory. I would like to check for missing logs files and add their name to a text file.
Something like...
Check if C:\logs\file1_currentdate exists (if not, add file1_currentdate to... (1 Reply)
Hi all, i am writting a script to fix some problems we have with data that we need that contains 1000s of records. I have a text file with 3 columns of data. The problem is there should be a space between the end of the first column and the start of the second column. The majority of the data is... (7 Replies)
Hi all,
I have created a script which adding two columns and removing two columns for all files.
Filename: Cust_information_1200_201010.txt
Source Data:
"1","Cust information","123","106001","street","1-203 high street"
"1","Cust information","124","105001","street","1-203 high street"
... (0 Replies)
How can i make a script to add text before the first word on a line in a textfile :
Example:
Old line:
is my place
New line:
this is my place
Please use and tags when posting code, data or logs etc. to preserve formatting and enhance readability, thanks. (3 Replies)
Hi all, I know this sounds suspiciously like a homework course; but, it is not.
My goal is to take a file, and match my "ID" column to the "Date" column, if those conditions are true, add the total number of minutes worked and place it in this file, while not printing the original rows that I... (6 Replies)
My first post, so don't kill me :)
Say i open some textfile with some example like this.
on the table are handy, bread and wine
Now i know exactly what is in and i want to separate and sorted it in terminal to an existing file with another 2 existing lines in like this:
table
plane ... (3 Replies)
HI All,
I'm embedding SQL query in Script which gives following output:
Assignee Group Total
ABC Group1 17
PQR Group2 5
PQR Group3 6
XYZ Group1 10
XYZ Group3 5
I have saved the above output in a file.
How do i sum up the contents of this output so as to get following output:
... (4 Replies)
Discussion started by: Khushbu
4 Replies
LEARN ABOUT SUSE
tk_internatom
Tk_InternAtom(3) Tk Library Procedures Tk_InternAtom(3)__________________________________________________________________________________________________________________________________________________NAME
Tk_InternAtom, Tk_GetAtomName - manage cache of X atoms
SYNOPSIS
#include <tk.h>
Atom
Tk_InternAtom(tkwin, name)
const char *
Tk_GetAtomName(tkwin, atom)
ARGUMENTS
Tk_Window tkwin (in) Token for window. Used to map atom or name relative to a particular display.
const char *name (in) String name for which atom is desired.
Atom atom (in) Atom for which corresponding string name is desired.
_________________________________________________________________DESCRIPTION
These procedures are similar to the Xlib procedures XInternAtom and XGetAtomName. Tk_InternAtom returns the atom identifier associated
with string given by name; the atom identifier is only valid for the display associated with tkwin. Tk_GetAtomName returns the string
associated with atom on tkwin's display. The string returned by Tk_GetAtomName is in Tk's storage: the caller need not free this space
when finished with the string, and the caller should not modify the contents of the returned string. If there is no atom atom on tkwin's
display, then Tk_GetAtomName returns the string "?bad atom?".
Tk caches the information returned by Tk_InternAtom and Tk_GetAtomName so that future calls for the same information can be serviced from
the cache without contacting the server. Thus Tk_InternAtom and Tk_GetAtomName are generally much faster than their Xlib counterparts, and
they should be used in place of the Xlib procedures.
KEYWORDS
atom, cache, display
TkTk_InternAtom(3)