:cool: fedora core 2 version 2.6.8-1.521 gnu/linux
the last version of redhat that I was working with linux 8.0 a special version that came with a book.. on this version and on spider tools linux 0.9 the second version I worked with.. when i envoked egrep -e from file1 to file2 I would get the... (4 Replies)
I'd like to grep a pattern of a version number as
*_number.number.number
number should be digit
my grep is
|egrep '^*++\.+'
It works for V_3.2.1 or V _5.3.2 but not with V_43.6.543 !!!!!
How can I specify any repetition of digit in the ?
thanks, (4 Replies)
Hi All,
I am using egrep command to search one pattern. Following is the command i am using
egrep -i "ACL*" filename
but its also giving me the records which do not contain ACL.
any help would be appreciated.
Regards,
Sam (3 Replies)
Hi All,
I am having a query regarding the usage of egrep command.
i am having two unix environmanets in environment when i am using
"egrep -f" it is working fine and other unix environment i am getting a syntax error.
Please let me know if i need to set any environmane variables.
... (12 Replies)
Hi All,
Here is my question.
I have two files, file1.txt and file2.txt. I need the line number (index number) of file2.txt where the words in file1.txt appear. But they have to be in the same order as file1.txt. In example,
file1.txt
Z
K
A
...
T
file2.txt
W
A
Q
R (6 Replies)
Hi,
I'm trying to validate if a string matches a regular expression, but it is not working. Am I missing something? Do I need to scape any of the characters?
if echo 'en-GB' | egrep '({1,8})(-{1,8})*' >/dev/null; then
echo Valid value
fi
Thanks in advance (6 Replies)
cat /tmp/inventory.csv|grep AARP|egrep -v "T11|12.4\(7\)"
how do i exclude in addition to above 12.4\(3\)
I have tried adding this in i.e
-v "T11|12.4\(7\)|12.4\(3\)"
but it did not work (3 Replies)
Hello folks,
Here's how my current egrep command works:
egrep "NY|DC|LA|VA|MD" state_data.txt
I am planning to use a file to enter all allowable state values like say a new state_names.lookup with the following data:
NY
DC
LA
VA
MD
egrep "`cat state_names.lookup`"... (6 Replies)
Hi Guys,
I need hepl on egrep commnad
I have one file and i need grep only specific lines..
EX:
2012-04-01 02:15:14 w
2012-04-01 02:15:14 w
2012-04-01 02:15:14 w
2012-10-26 02:15:14 w
2012-04-01 02:15:14 w
2012-10-26 02:15:14 w
2012-10-26 02:15:14 w
2012-10-26 03:18:56 M... (1 Reply)
Hi,
I am trying to find out patterns in file 1 using patterns stored in file 2. Following is the code
FILE1=inputfilename
FILE2=blacklist
blacklist
1203
97715555
20afEOF
egrep -f $FILE2 $FILE1
but the above code is not working either using egrep or grep. Just for your... (10 Replies)
Discussion started by: siramitsharma
10 Replies
LEARN ABOUT OSF1
class_open
class_open(3) Library Functions Manual class_open(3)NAME
class_open - Initialize the class scheduler database.
SYNOPSIS
#include <apar_types.h> #include <sys/class.h>
class_open(
apart_id,
part_id,
*class_apar_handle_t,
handle );
PARAMETERS
Input which describes the unique partition identifier. Output that displays the descriptor used in calls to reference the partition.
DESCRIPTION
The class_open function is used to prepare the class scheduler database for use as follows: Opening the disk file (if any). Creating (or
attaching to) a shared memory section. Creating (or attaching to) a semaphore. Initializing the database if one did not aready exist.
Before class scheduling can be used for a partition, its class scheduler database must be initialized. At the first call of class_open()
since the system last started, the function creates a shared memory segment for the partition database and, if it exists on disk, reads it
into the shared memory. A semaphore is also created that is used to synchronize potential simultaneous database updates (from class_admin
and runclass, for instance). If no database exists for the partition one will be created with the default configuration
On subsequent calls to class_open() the function attaches to the existing shared memory and semaphore.
RESTRICTIONS
The caller must have root access rights.
RETURN VALUES
Operation successfully completed. The class_open succeeded but no database existed. A new database was created with default configuration
settings. The calling process is not super user (root) and permission is denied. The malloc function failed to get memory for handle.
Failed to access disk file, if it exists. Failed to create or attach to shared memory. Failed to create or attach to semaphore.
SEE ALSO class_scheduling(4), runclass(1), class_admin(8) delim off
class_open(3)