09-03-2008
Quote:
Originally Posted by
chris1234
Thanks Vidhya. So i need to use AWK in order to get the column which contains space. Got it. I tried IFS=',' and couple of other stuff but everytime i was running into this problem.
there is no restriction that you need to use awk.. as dennis said you can do it by simple sed..
or simply awk -F"," '{print $1}' filename
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Dear all
My actual root file system size is 1 gb, only OS installed .
other than OS i did n't installed in this slice.
but It shows 100% full.
When try to create space , I couldn't find any files other than OS.
What may be the reason?
Help.... any one pls. (2 Replies)
Discussion started by: sbaloo
2 Replies
2. UNIX for Advanced & Expert Users
I am in the initial stage of learning UNIX. I got PC with Intel SUN SOLARIS S/W. I am planning to install Oracle on the same machine. I have created /export with more than 3gb space, when I have installed the OS. As a Oracle user when I am trying to create a directory I am able to get only 512... (4 Replies)
Discussion started by: suraj
4 Replies
3. Filesystems, Disks and Memory
I have sun solaris 8 for intell with 128m physiccal ram and swap of 148. Oracle requires to have 512M swap space. Is there a way I can change the swap space on intell machine without repartioning the box:? what if i create a link to /swap from another place????
pls advise
Jigar (1 Reply)
Discussion started by: jigarlakhani
1 Replies
4. UNIX for Dummies Questions & Answers
I am very new to Linux and trying to install Oracle 9.2 on Red Hat Linux 7.2. My problem: /tmp needs to be larger in order to install Oracle. It is 64MB now. How can I resize this? I'm totally confused !!
Thanks. (7 Replies)
Discussion started by: canova
7 Replies
5. Shell Programming and Scripting
Solved.... (1 Reply)
Discussion started by: redbeard_06
1 Replies
6. UNIX for Dummies Questions & Answers
Dear all
Recently I cant touch file in one mount point (which is not full, 78% full only), it says can't write to device, obviously it means it's full, I deleted some files and I can write some files only. I wonder is there any file number limitation in a mount point and how can I check or how... (2 Replies)
Discussion started by: shanemcmahon
2 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have a file containing a list of entries.
Want to do ls on them.
for a in `cat <list.txt>`; do ls $a; done;
Now some entries contain spaces.
How do i incorporate space in $a.
Quoting $a in "" doesn't help.
Thanks (6 Replies)
Discussion started by: vibhor_agarwali
6 Replies
8. UNIX for Advanced & Expert Users
Hy!
Recently i had a problem with one of mine Tru64 machines.
It started to kill processes because of low amount of swap space. It said that it went below 10 %.
But when i ran swapon -s it said:
In-use space: 12 %
So, the system couldn't accept any new ssh connections plus it killed most of... (1 Reply)
Discussion started by: veccinho
1 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have a space delimited text file but I only want to change the first space to a tab and keep the rest of the spaces intact. How do I go about doing that? Thanks! (3 Replies)
Discussion started by: evelibertine
3 Replies
10. AIX
Hello everyone,
Sorry for my English but i'm French.
I have a problem on an AIX 5.3 server on the occupation of a file system.
When i run a df -m, this is what i get :
Filesystem MB blocks Free %Used Iused %Iused Mounted on
/dev/fslv09 3936.00 340.94 92% 7255 ... (8 Replies)
Discussion started by: Veis
8 Replies
LEARN ABOUT HPUX
xmstringtableproposetablist
XmStringTableProposeTablist(library call) XmStringTableProposeTablist(library call)
NAME
XmStringTableProposeTablist -- A convenience function that returns a tab list
SYNOPSIS
#include <Xm/Xm.h>
XmTabList XmStringTableProposeTablist(
XmStringTable strings,
Cardinal num_strings,
Widget widget,
float pad_value,
XmOffsetModel offset_model);
DESCRIPTION
XmStringTableProposeTablist takes an XmStringTable structure containing tabbed compound strings, information on padding between columns,
and rendering information and returns a tab list that, if used to render the strings in the table, would cause the strings to line up in
columns with no overlap and with the specified amount of padding between the widest item in each column and the start of the next column.
Each tab in the tablist would have the same unit type as units, an offset model of offset_model, and an alignment type of XmALIGN-
MENT_BEGINNING.
strings Specifies an array of compound strings.
num_strings
Specifies the number of compound strings in strings.
widget Specifies the widget used for deriving any necessary information for creating the rendition. In particular, the XmNunitType of
widget will be used to specify the unit type to be used in determining the amount of padding separating columns and for the tabs
in the proposed tab list. Also, widget's render table will be used in interpreting rendition tags within the strings.
pad_value Specifies the value of the amount of padding to be used to separate columns. The units for this parameter are specified as the
XmNunitType set for the widget parameter. Refer to the XmNunitType resource of the XmGadget, XmManager, or XmPrimitive reference
page.
offset_model
Specifies the offset model to be used in creating the tabs. Can be XmABSOLUTE or XmRELATIVE.
RETURN
Returns a new XmTabList. The function allocates space to hold the returned tab list. The application is responsible for managing the
allocated space. The application can recover the allocated space by calling XmTabListFree.
RELATED
XmTabList(3) and XmTabListFree(3).
XmStringTableProposeTablist(library call)