Sponsored Content
Top Forums Shell Programming and Scripting Find the starting position in a file Post 302541995 by jim mcnamara on Tuesday 26th of July 2011 10:31:57 AM
Old 07-26-2011
Your directions contradict each other. What EXACTLY determines the start and and of the account field?

It cannot be "MNT" that occurs at position 1 in both examples.
 

10 More Discussions You Might Find Interesting

1. HP-UX

find the position in a file and insert the data there

Hi, I have a EDI data file ARROWTEST of size 18246 characters. And I want to insert some data after 4200 position in the file. How I can find the position 4200 in that file....Please advise. Regards, (5 Replies)
Discussion started by: isingh786
5 Replies

2. Shell Programming and Scripting

how to find a position and print some string in the next and same position

I need a script for... how to find a position of column data and print some string in the next line and same position position should find based on *HEADER8* in text for ex: ord123 abs 123 987HEADER89 test234 ord124 abc 124 987HEADER88 test235 ... (1 Reply)
Discussion started by: naveenkcl
1 Replies

3. UNIX for Dummies Questions & Answers

find if a position is between a given start and end position

Hi, I am a newbie in unix programming so maybe this is a simple question. I would like to know how can I make a script that outputs only the values that are not between any given start and end positions Example file1: 2 30 40 80 82 100 file2: ID1 1 ID2 35 ID3 80 ID4 81 ID6... (9 Replies)
Discussion started by: fadista
9 Replies

4. Shell Programming and Scripting

How to put a word starting at particular position in a file using shell scripting

Hi all, I'm new to shell scripting and hence this query. I have 2 files. temp.txt and config.txt. The values in temp.txt are tab separated. ex: temp.txt AB CDE GHIJ OPQRS WXY ex:config.txt (1st line for 1st element of temp.txt and so on) start = '1' end='5' start = '6' end =... (26 Replies)
Discussion started by: subhrap.das
26 Replies

5. Shell Programming and Scripting

Find the position of a pattern on a line from a csv file

hello I'm doing a unix program and i'm using many file csv.in each csv file the colums are separated by ";" I would like to know the position of a pattern. For example for a line yyyy, bbbb, cccc; ddddd;eeee. I will like for example by finding the position of the pattern "cccc" and the response is... (6 Replies)
Discussion started by: papis
6 Replies

6. Shell Programming and Scripting

Remove the spaces at the end of a line starting from a fixed position

I want to remove the trailing spaces at the end of each line starting from a particular position(using ksh script). For example, in the attached file, I want to remove all the spaces starting from the position 430 till the end. The space has to be removed only from the 430th position no matter in... (3 Replies)
Discussion started by: Suryaaravindh
3 Replies

7. Shell Programming and Scripting

Grep starting from a specific position

Hello people, I'm scratch my head to find a solution to my problem, I'm absolutely sure this is very simple!!! :wall: I'm using the tcpdump to show on the screen in real time the UCP traffic: tcpdump -l -i bond1 -s 1514 -nntttt -A src or dst 192.168.1.5 and port 10000 | egrep "/51/"The output... (5 Replies)
Discussion started by: Lord Spectre
5 Replies

8. Shell Programming and Scripting

How to find character position in file?

how to find character positionin file? i.e string = "123X568" i want to find the position of character "X". Thanks (6 Replies)
Discussion started by: LiorAmitai
6 Replies

9. Shell Programming and Scripting

Find the position of a field/column in a flat file

Hi, Let say I have a file which has around 400 fields. SampleFile ========= PATIENTID|FACILITY|................|TIME_LAST_VISITED_BY_MD|.....|STATUS| How is it possible to find out which field is TIME_LAST_VISITED_BY_MD?fro example by seeing the above structure we can saw FACILITY... (5 Replies)
Discussion started by: machomaddy
5 Replies

10. Shell Programming and Scripting

Find position of character in multiple strings in a file

Greetings. I have a file with information like this: AMNDHRKEOEU?AMNDHRKEOEU?AMNDHRKEOEU?AMNDHRKEOEU? AMNDHRKEEU?AMNDHREOEU? AMNDHREU?AHRKEOEU?AMNDHRKEU?AMNDKEOEU? What I need to extract is the position, in every line, of every occurrence of '?' A desired output would be something... (6 Replies)
Discussion started by: Twinklefingers
6 Replies
AUDISP-PRELUDE.CONF:(5) 				  System Administration Utilities				   AUDISP-PRELUDE.CONF:(5)

NAME
audisp-prelude.conf - the audisp-prelude configuration file DESCRIPTION
audisp-prelude.conf is the file that controls the configuration of the audit based intrusion detection system. There are 2 general kinds of configuration option types, enablers and actions. The enablers simply have yes/no as the only valid choices. The action options currently allow ignore, and idmef as its choices. The ignore option means that the IDS still detects events, but only logs the detection in response. The idmef option means that the IDS will send an IDMEF alert to the prelude manager upon detection. The configuration options that are available are as follows: profile This is a one word character string that is used to identify the profile name in the prelude reporting tools. The default is auditd. detect_avc This an enabler that determines if the IDS should be examining SE Linux AVC events. The default is yes. avc_action This is an action that determines what response should be taken whenever a SE Linux AVC is detected. The default is idmef. detect_login This is an enabler that determines if the IDS should be examining login events. The default is yes. login_action This is an action that determines what response should be taken whenever a login event is detected. The default is idmef. detect_login_fail_max This is an enabler that determines if the IDS should be looking for maximum number of failed logins for an account. The default is yes. login_fail_max_action This is an action that determines what response should be taken whenever the maximum number of failed logins for an account is detected. The default is idmef. detect_login_session_max This is an enabler that determines if the IDS should be looking for maximum concurrent sessions limit for an account. The default is yes. login_session_max_action This is an action that determines what response should be taken whenever the maximum concurrent sessions limit for an account is detected. The default is idmef. detect_login_location This is an enabler that determines if the IDS should be looking for logins being attempted from a forbidden location. The default is yes. login_location_action This is an action that determines what response should be taken whenever logins are attempted from a forbidden location. The default is idmef. detect_login_time_alerts This is an enabler that determines if the IDS should be looking for logins attempted during a forbidden time. The default is yes. login_time_action This is an action that determines what response should be taken whenever logins are attempted during a forbidden time. The default is idmef. detect_abend This is an enabler that determines if the IDS should be looking for programs terminating for an abnormal reason. The default is yes. abend_action This is an action that determines what response should be taken whenever programs terminate for an abnormal reason. The default is idmef. detect_promiscuous This is an enabler that determines if the IDS should be looking for promiscuous sockets being opened. The default is yes. promiscuous_action This is an action that determines what response should be taken whenever promiscuous sockets are detected open. The default is idmef. detect_mac_status This is an enabler that determines if the IDS should be detecting changes made to the SE Linux MAC enforcement. The default is yes. mac_status_action This is an action that determines what response should be taken whenever changes are made to the SE Linux MAC enforcement. The default is idmef. detect_group_auth This is an enabler that determines if the IDS should be detecting whenever a user fails in changing their default group. The default is yes. group_auth_act This is an action that determines what response should be taken whenever a user fails in changing their default group. The default is idmef. detect_watched_acct This is an enabler that determines if the IDS should be detecting a user attempting to login on an account that is being watched. The accounts to watch is set by the watched_accounts option. The default is yes. watched_acct_act This is an action that determines what response should be taken whenever a user attempts to login on an account that is being watched. The default is idmef. watched_accounts This option is a whitespace and comma separated list of accounts to watch. The accounts may be numeric or alphanumeric. If you want to include a range of accounts, separate them with a dash but no spaces. For example, to watch logins from bin to lp, use "bin-lp". Only successful logins logins are recorded. detect_watched_syscall This is an enabler that determines if the IDS should be detecting whenever a user runs a command that issues a syscall that is being watched. The default is yes. watched_syscall_act This is an action that determines what response should be taken whenever a user runs a command that issues a syscall that is being watched. The default is idmef. detect_watched_file This is an enabler that determines if the IDS should be detecting whenever a user accesses a file that is being watched. The default is yes. watched_file_act This is an action that determines what response should be taken whenever a user accesses a file that is being watched. The default is idmef. detect_watched_exec This is an enabler that determines if the IDS should be detecting whenever a user executes a program that is being watched. The default is yes. watched_exec_act This is an action that determines what response should be taken whenever a user executes a program that is being watched. The default is idmef. detect_watched_mk_exe This is an enabler that determines if the IDS should be detecting whenever a user creates a file that is executable. The default is yes. watched_mk_exe_act This is an action that determines what response should be taken whenever a user creates a file that is executable. The default is idmef. SEE ALSO
audispd(8), audisp-prelude(8), prelude-manager(1). AUTHOR
Steve Grubb Red Hat Mar 2008 AUDISP-PRELUDE.CONF:(5)
All times are GMT -4. The time now is 12:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy