Hello.
I have a dir of 1500+ dir. In these dirs is a file host, with a tag <x_tag>.
I need to :
1. grep for all dir that contain this host file that contain <x_tag>
2. print a list of these host files containing <x_tag>
is this better to egrep this? (5 Replies)
I am having a heck of a time trying to write a script that will grep for multiple strings in a single file. I am really at my wits end here and I am hoping to get some feedback here.
Basic information:
OS: Solaris 9
Shell: KSH
Oracle Database server
I was trying to grep through a file... (5 Replies)
ok, apparently this is a very difficult question to answer based on my searches on google that came up fruitless.
what i want to do is grep through a file for words that match a specified string.
but the thing is, i keep getting all words in the file that have the string in them.
say for... (27 Replies)
Trying to find a way to grep for two names on a line. Both names must appear on the same line so '|' / OR is out.
So far, I'm just messing around and I've got
find . -name "*" | xargs grep "Smith"
Let me explain. I'm at a top level and need to know all the names of the files that... (6 Replies)
I've got this command that I've been using to find strings on the same line, say I'm doing a search for name:
find . -name "*" | xargs grep -i "Doe" | grep -i "John" > output.txt
This gives me every line in a file that has John and Doe in it. I'm looking to add a OR operator for the second... (5 Replies)
Hello,
I have a log file that outputs the data below. I would like to grep and display the data where column is equal '148.'
I've searched the forum, and couldn't find any answers.
I've tried all the grep switches and I get the same result as the log.
I'm thinking I might have to use an... (4 Replies)
Dear fellows, I need your help.
I'm trying to write a script to convert a single column into multiple rows.
But it need to recognize the beginning of the string and set it to its specific Column number.
Each Line (loop) begins with digit (RANGE).
At this moment it's kind of working, but it... (6 Replies)
I have data in the following tab-separated format (consists of 200 columns all together, this is just a sampling)
</s> 0.001701 0.002025 0.002264 0.001430 -0.001300
. -0.205240 0.177341 -0.426209 -0.661049 -0.048884 0.027032
the -0.159145 0.084377 0.056968 0.050934 0.160689
of -0.230698... (7 Replies)
Hello Everyone ,
Iam a newbie to shell programming and iam reaching out if anyone can help in this :-
I have two files
1) Insert.txt
2) partition_list.txt
insert.txt looks like this :-
insert into emp1 partition (partition_name)
(a1,
b2,
c4,
s6,
d8)
select
a1,
b2,
c4, (2 Replies)
Discussion started by: nubie2linux
2 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)