Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Research an expression in VI editor Post 302698421 by big123456 on Monday 10th of September 2012 04:39:08 AM
Old 09-10-2012
Research an expression in VI editor

Hi,
how to look for an expression like :
Code:
[09/06/12 00:03:44]

or

Code:
 Client ChkAeStatus4 service

in VI ?

For a word , of cours :
Code:
/word

But for an expression ?
Thank you.
 

9 More Discussions You Might Find Interesting

1. Forum Support Area for Unregistered Users & Account Problems

Research Project

Hi, I need you help with my research project that attempts to determine the link between users and manufacturers of IT Products such as Unix. This is part of an MBA program that I'm currently pursuing. My challenge is that I cannot possibly find out how I can send my research... (1 Reply)
Discussion started by: Tdludlu
1 Replies

2. Windows & DOS: Issues & Discussions

Research for College

I am researching the reasons why Unix / Linux is the chosen operating system versus Windows. I have had difficutly narrowing down resources. I am wondering if anyone has any favorite sources that they would care to share. Thanks Dan (2 Replies)
Discussion started by: isenhart
2 Replies

3. Programming

error: initializer expression list treated as compound expression

I had seen this error for the first time ..... error: initializer expression list treated as compound expression please help.... (12 Replies)
Discussion started by: arunchaudhary19
12 Replies

4. UNIX for Dummies Questions & Answers

Pasting text in VI editor from a different editor

Hi, I knw its a silly question, but am a newbie to 'vi' editor. I'm forced to use this, hence kindly help me with this question. How can i paste a chunk 'copied from' a different editor(gedit) in 'vi editor'? As i see, p & P options does work only within 'vi'. (10 Replies)
Discussion started by: harishmitty
10 Replies

5. Shell Programming and Scripting

set EDITOR=vi -> default editor not setting for cron tab

Hi All, I am running a script , working very fine on cmd prompt. The problem is that when I open do crontab -e even after setting editor to vi by set EDITOR=vi it does not open a vi editor , rather it do as below..... ///////////////////////////////////////////////////// $ set... (6 Replies)
Discussion started by: aarora_98
6 Replies

6. UNIX for Advanced & Expert Users

sed: -e expression #1, char 0: no previous regular expression

Hello All, I'm trying to extract the lines between two consecutive elements of an array from a file. My array looks like: problem_arr=(PRS111 PRS213 PRS234) j=0 while } ] do k=`expr $j + 1` sed -n "/${problem_arr}/,/${problem_arr}/p" problemid.txt ---some operation goes... (11 Replies)
Discussion started by: InduInduIndu
11 Replies

7. UNIX for Advanced & Expert Users

Research ID - in Crontab

Hi, I have a unix script which runs a process (informatica workflow). To trigger this workflow an entry is made into the crontab and it is scheduled to run. Issue: The crontab entry is commented out. But the process is running in the unix box and it was scheduled immediately. There is someone... (6 Replies)
Discussion started by: diva_thilak
6 Replies

8. UNIX for Dummies Questions & Answers

Research questions

Hi there, please could you assist me. I have no knowledge at all about Unix and I have applied for a job and they have given me a test and said that I can obtain the answers in any kind of way. There are 3 questions that I need answers for. I have tried researching the answers to these questions... (12 Replies)
Discussion started by: zakl
12 Replies

9. UNIX for Beginners Questions & Answers

NAS Research

Good Afternoon, Are most NASs compatible with Solaris/RedHat? Specifically, I'm looking at Western Digital ones but none of them say they are - I like My Cloud Pro Series PR4100 My Cloud Pro Series PR4100 – Network Attached Storage | Western Digital (WD) (3 Replies)
Discussion started by: Stellaman1977
3 Replies
AUSEARCH_ADD_expression(3)					  Linux Audit API					AUSEARCH_ADD_expression(3)

NAME
ausearch_add_expression - build up search expression SYNOPSIS
#include <auparse.h> int ausearch_add_expression(auparse_state_t *au, const char *expression, char **error, ausearch_rule_t how); DESCRIPTION
ausearch_add_item adds an expression to the current audit search expression. The search conditions can then be used to scan logs, files, or buffers for something of interest. The expression parameter contains an expression, as specified in ausearch-expression(5). The how parameter determines how this search expression will affect the existing search expression, if one is already defined. The possi- ble values are: AUSEARCH_RULE_CLEAR Clear the current search expression, if any, and use only this search expression. AUSEARCH_RULE_OR If a search expression E is already configured, replace it by (E || this_search_expression). AUSEARCH_RULE_AND If a search expression E is already configured, replace it by (E && this_search_expression). RETURN VALUE
If successful, ausearch_add_expression returns 0. Otherwise, it returns -1, sets errno and it may set *error to an error message; the caller must free the error message using free(3). If an error message is not available or can not be allocated, *error is set to NULL. SEE ALSO
ausearch_add_item(3), ausearch_add_interpreted_item(3), ausearch_add_timestamp_item(3), ausearch_add_regex(3), ausearch_set_stop(3), ause- arch_clear(3), ausearch_next_event(3), ausearch-expression(5). AUTHOR
Miloslav Trmac Red Hat Feb 2008 AUSEARCH_ADD_expression(3)
All times are GMT -4. The time now is 04:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy