Sponsored Content
Top Forums Shell Programming and Scripting How to find all files which has names in uppercase in a directory Post 302616197 by Corona688 on Friday 30th of March 2012 03:25:06 PM
Old 03-30-2012
In what way did it "not work"? Show exactly what you did, word for word, letter for letter, keystroke for keystroke, and show exactly what happened afterwards.

It works fine here:

Code:
$ mkdir mytest ; cd mytest
$ touch abc.IDS XYZ.IDS
$ ls | grep -v "[a-z]"
XYZ.IDS

$

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

find the length of file names in a directory?

Hi, how can find length of file names in a directory. Examp: I have a directory with name "d1". directory: d1 files: aaa.log bbb.log abcd.log abcdef.log I wold like out put like: file name legnth aaa.log 3 bbb.log 3 abcd.log 4 abcdef.log 5 (5 Replies)
Discussion started by: koti_rama
5 Replies

2. UNIX for Dummies Questions & Answers

WebDav/davfs mounted file & directory names in all UPPERCASE

Hey, I have a WebDav directory mounted and everything seems fine except for one thing. All file/directory names appear in all UPPERCASE, when in actual fact they are lowercase on the remote machine. For example: foo/bar/baz.html on the remote host, appears on my local machine as... (0 Replies)
Discussion started by: MrMoney
0 Replies

3. Shell Programming and Scripting

Find Directory from array of file names with paths

I have a script that generates a variable with the location of a file and its complete path. What i want to do is to "cd" to the directory where that file is located using the path name of the file. GIS has absolutely failed me. For example when i run my script it generates a variable called... (1 Reply)
Discussion started by: Knome
1 Replies

4. UNIX for Dummies Questions & Answers

find the file names having specified pattern at specified position in the current directory

I would need a command for finding first 15000 of the file names whose 25th postion is 5 in the current directory alone. I do have this painful command find . -name '5*' | head -15000 | cut -c3- please refine this. Of course the above command also searches in the sub directories... (3 Replies)
Discussion started by: vk39221
3 Replies

5. Shell Programming and Scripting

Grepping file names, comparing them to a directory of files, and moving them into a new directory

got it figured out :) (1 Reply)
Discussion started by: sHockz
1 Replies

6. Shell Programming and Scripting

How to find empty files in a directory and write their file names in a text?

I need to find empty files in a directory and write them into a text file. Directory will contain old files as well, i need to get the empty files for the last one hour only. (1 Reply)
Discussion started by: vel4ever
1 Replies

7. Shell Programming and Scripting

Find Files and then convert them to Uppercase

Hi All, So I'm new to scripting and I've been put in a position to convert a bunch of files with specific extensions in a folder and all its subfolders to uppercase including their extension. I figure so far I could do something like this: ... ... and then input $line into another bash... (12 Replies)
Discussion started by: ideal2545
12 Replies

8. Shell Programming and Scripting

making find/sed to include directory names with spaces

how can i make find/sed to include directory names with spaces the command is like this for i in `find wp-content/themes -type f -print0 | xargs -0 grep -l -iE 'e'`;do sed -i -e 's/word1/word2/gI' "$i";done but it skips one directory names with spaces sed: can't read ./Nova: No such... (5 Replies)
Discussion started by: vanessafan99
5 Replies

9. Shell Programming and Scripting

Edit names of files in a directory

Hi all, I have a directory with multiple (thousnads) of files, which are named this way ABCDEF.wo.im-1 OKRAME.ire.roi IOJEAFO01.irt.gfg IMNYBL05.REG.gkf I would like to keep the part of the name (everything before the first dot in the filename). The desired output: ABCDEF... (3 Replies)
Discussion started by: Error404
3 Replies

10. Shell Programming and Scripting

Directory containing files,Print names of the files in the directory that are exactly same content.

Given a directory containing say a few thousand files, please output a list of all the names of the files in the directory that are exactly the same, i.e. have the same contents. func(a_directory_name) output -> {“matches”: , ... ]} e.g. func(“/home/my/files”) where the directory... (7 Replies)
Discussion started by: anuragpgtgerman
7 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 06:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy