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 X11R4
xkbsasetscreen
XkbSASetScreen(3) XKB FUNCTIONS XkbSASetScreen(3)NAME
XkbSASetScreen - Sets the screenXXX field of act from s
SYNOPSIS
void XkbSASetScreen macro ( act, s )
XkbSwitchScreenAction act;
int s;
ARGUMENTS
- act action in which to set screenXXX
- s value to set in screenXXX
DESCRIPTION
Actions associated with the XkbSwitchScreen action structure change the active screen on a multiscreen display.
The type field of the XkbSwitchScreenAction structure should always be XkbSA_SwitchScreen.
The flags field is composed of the bitwise inclusive OR of the masks shown in Table 1.
Table 1 Switch Screen Action Flags
-------------------------------------------------------------------
Flag Meaning
-------------------------------------------------------------------
XkbSA_SwitchAbsolute If set, the screenXXX field represents
the index of the new screen. Otherwise,
it represents an offset from the current
screen to the new screen.
XkbSA_SwitchApplication If not set, the action should switch to
another screen on the same server. Oth-
erwise, it should switch to another X
server or application that shares the
same physical display.
The screenXXX field is a signed character value that represents either the relative or absolute screen index, depending on the state of the
XkbSA_SwitchAbsolute bit in the flags field. Xkb provides the following macros to convert between the integer and signed character value
for screen numbers in XkbSwitchScreenAction structures.
STRUCTURES
typedef struct _XkbSwitchScreenAction {
unsigned char type; /* XkbSA_SwitchScreen */
unsigned char flags; /* controls screen switching */
char screenXXX; /* screen number or delta */
} XkbSwitchScreenAction;
NOTES
This action is optional. Servers are free to ignore the action or any of its flags if they do not support the requested behavior. If the
action is ignored, it behaves like XkbSA_NoAction. Otherwise, key press and key release events do not generate an event.
X Version 11 libX11 1.2.1 XkbSASetScreen(3)