Sponsored Content
Top Forums Shell Programming and Scripting Script to check if list of files belong to particular group Post 302693621 by draghun9 on Wednesday 29th of August 2012 11:31:02 AM
Old 08-29-2012
Script to check if list of files belong to particular group

i just need help to write a shell script which when run should take the text doc(contains list of files which are to be copied) as input and then each file has to be checked to see if they belong to any of the 5 groupnames that we are going to mention in the other list document, id they belong to any of the group, then they should be copied to destinated location, If not we just have to ignore those files.




*** my last post was deleted so posting it again
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

listing files that do not belong to current date

How do we list all the file names in a directory that does not belong to current date. (1 Reply)
Discussion started by: esh.mohan
1 Replies

2. UNIX for Dummies Questions & Answers

listing files that does not belong to current date

How do we list all the file names in a directory that does not belong to current date. (3 Replies)
Discussion started by: esh.mohan
3 Replies

3. Shell Programming and Scripting

Script to rename a group of files

Hello, I have a directory which has the file names as ap_boise_20091109.Z.20091110 ap_aero_20091020.Z.20091021 . .. ... I have to remove the time stamp after which is present after Z. as there are thousands of file to do so, is there a simple way to rename those file in a single... (4 Replies)
Discussion started by: atlantis_yy
4 Replies

4. Shell Programming and Scripting

d. Write a shell script to count the number of accounts which belong to particular primary

guys, I am new shelll scripting.. this a question on passt exam paper, I was trying to solve it , I can not. the question is as follow? a. Write a shell script to count the number of accounts which belong to particular primary group in a standard UNIX system which uses local... (1 Reply)
Discussion started by: gurmad
1 Replies

5. Shell Programming and Scripting

Shell script to rename a group of files

Hello, I am having 1800 files in a directory with a specified format, like amms_850o_prod.000003uNy amms_850o_prod.000003u8x amms_850o_prod.000003taP amms_850o_prod.000003tKy amms_850o_prod.000003si4 amms_850o_prod.000003sTP amms_850o_prod.000003sBg amms_850o_prod.000003rvx... (12 Replies)
Discussion started by: atlantis
12 Replies

6. Shell Programming and Scripting

Script to list primary group of users

Dear All I am facing a problem with my script. I have to found the primary group of users . So first I selected all the groups and users register from a specific user : ONE Then I am making a file with all groups attached to the user : ONE Then I am making a file with all... (8 Replies)
Discussion started by: Aswex
8 Replies

7. Shell Programming and Scripting

Listing files that belong to a certain year date?

I'm trying to list files, first by size and I'm using something like this ls -l|awk '{print $5,$6,$7,$8,$9|"sort -nr"}'|more Now I'd like to just do the same listing but only for files with the year 2009 in the $8 field or even anything less than 2011. (5 Replies)
Discussion started by: NycUnxer
5 Replies

8. Shell Programming and Scripting

need a shell script to extract the files from source file and check whether those files existonserve

Hi, I am new to shell scripting.Please help me on this.I am using solaris 10 OS and shell i am using is # echo $0 -sh My requirement is i have source file say makefile.I need to extract files with extensions (.c |.cxx |.h |.hxx |.sc) from the makefile.after doing so i need to check whether... (13 Replies)
Discussion started by: muraliinfy04
13 Replies

9. Shell Programming and Scripting

Urgent...Need a shell script to list files which belong to particular groups

Hi, I am just new to scripting but got to write a complex scipt please help. i need a shell script which can check the list of data listed in a txt doc and see if they belong to any of the groups that are listed in other list file.... (5 Replies)
Discussion started by: draghun9
5 Replies

10. Shell Programming and Scripting

List files whose owner or group is numeric

I want to add a condition is my find command to include files/sub-directory whose owner or group is all numeric number. My current find command is find . \( -user root -o -user soham\) -type f -exec ls -l {} \; 2>&1 ---------- Post updated at 10:20 AM ---------- Previous update was at... (5 Replies)
Discussion started by: Soham
5 Replies
evmd(1M)																  evmd(1M)

NAME
evmd - Event Manager daemon SYNOPSIS
DESCRIPTION
The Event Manager (EVM) daemon, receives events from posting clients and distributes them to subscribing clients that have indicated that they are interested in receiving the events. The daemon is a critical system facility that is started automatically when the system tran- sitions to run level 2, and which should not be terminated. The daemon in turn starts the event logger, and the channel manager, On startup, the daemon reads its configuration file, the authorization file, and the event template files stored under the directory. If these files are modified while the daemon is running, the command must be used or a signal must be sent to instruct the daemon to reconfig- ure itself. The system administrator can control access to events by modifying the EVM authorization file, As a daemon, does not have a standard output. Any error messages are written to the file The EVM daemon is monitored by the Essential Services Monitor daemon, which automatically restarts if it terminates unexpectedly. See esmd(1M) for more information. RETURN VALUES
The following exit values are returned: Successful completion. An error occurred. WARNINGS
The daemon rejects any attempt by a posting client to post an event that has one or more of the following problems: o The event is not registered. o The event contains invalid item values. o The posting client is not authorized to post such an event. FILES
Default directory for event template files Default location for event filter files. Filter files must have the suffix Error log file for UNIX domain socket established for connection between the EVM daemon and the local clients Daemon process id saved by Lock file established to prevent multiple invocations of the daemon Default location of the EVM daemon configuration file Default location of the EVM daemon authorization file SEE ALSO
Commands esmd(1M), evmchmgr(1M), evmlogger(1M), evmreload(1M), evmstart(1M), evmstop(1M). Files evm.auth(4), evmdaemon.conf(4), evmtemplate(4). Event Management EVM(5). Event Connection EvmConnection(5). EVM Events EvmEvent(5). Event Filter EvmFilter(5). evmd(1M)
All times are GMT -4. The time now is 08:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy