Sponsored Content
Top Forums UNIX for Advanced & Expert Users Advance file_name serech from set of list files in particular directory Post 302759341 by PikK45 on Tuesday 22nd of January 2013 05:21:50 AM
Old 01-22-2013
Let me explain...

> you have a file named "files.list" (changed for better understanding)
> you pull several files every hour from a remote server to your local
> you don't want the files that are not in the format listed in "files.list"

correct???

Answer these:
1. You know the format of files that you need. Then why are you pulling other files as well?
2. So after identifying the unnecessary files what are you planning to do about them?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to sort a set of files by date in a directory?

hi there, I have a directory which contents I can parse dynamically. I end up with a file list. I then want to display those files sorted by date, oldest files first. I have very very little PERL experience...Would anyone know how to do that ? Thanks in advance. (8 Replies)
Discussion started by: alexf
8 Replies

2. Shell Programming and Scripting

Sheel script to Delete a set of files from a given directory

I have a file <filestodelete> containing names of files to to be deleted from a directory <filesstore>. I want a script file which accptes the <filestodelete> and also the location of the directory(<filestore>) and deletes all files matching. Thanks in Advance.. (3 Replies)
Discussion started by: VardhiniVenkat
3 Replies

3. Shell Programming and Scripting

spilit the list of files in set ls -1 *.dbf

Dear All, Please help in this subject.. my requirement is list the files in directory and out of that list make the different set and each should set contains 10 files and assign to variable and start zipping in background. pick the second set files and same to be repeat the commands parallel. i... (3 Replies)
Discussion started by: nmadhuhb
3 Replies

4. Shell Programming and Scripting

find list of files from a list and copy to a directory

I will be very grateful if someone can help me with bash shell script that does the following: I have a list of filenames: A01_155716 A05_155780 A07_155812 A09_155844 A11_155876 that are kept in different sub directories within my current directory. I want to find these files and copy... (3 Replies)
Discussion started by: manishabh
3 Replies

5. UNIX for Dummies Questions & Answers

How to get the set of files size as a sum in a directory.

Hi, Can someone help me to get the complete files size (sum) over a perod time (1 day,2days)in a directory. eg: Directory :ABC I have a1,a2,a3 files are created in last 24 hours so I need to get the some of all these files. I am using the below find command but its giving me the... (1 Reply)
Discussion started by: gaddamja
1 Replies

6. Shell Programming and Scripting

Copy list of files from a keyword list to another directory

Hello, I have a folder with a massive amount of files, and I want to copy out a specific subset of the files to a new directory. I would like to use a text file with the filenames listed, but can't get it to work. The thing I'm hung up on is that the folder names in the path can and do have... (5 Replies)
Discussion started by: twjolson
5 Replies

7. Shell Programming and Scripting

Need to delete large set of files (i.e) close to 100K from a directory based on the input file

Hi all, I need a script to delete a large set of files from a directory under / based on an input file and want to redirect errors into separate file. I have already prepared a list of files in the input file. Kndly help me. Thanks, Prash (36 Replies)
Discussion started by: prash358
36 Replies

8. UNIX for Advanced & Expert Users

Find the list of files with a set of Users

Hello all, I want to find the files for certain users. I cant make the or condition work in this instance. I've tried the code below but it didnt worked. Any input on how to get the list for all files for this users. find . -type f -user abc134 -o -user xyz345 -o bce483 -exec ls... (6 Replies)
Discussion started by: sethmj
6 Replies

9. AIX

How to set owner and permission for files/directory in directory in this case?

Hi. My example: I have a filesystem /log. Everyday, log files are copied to /log. I'd like to set owner and permission for files and directories in /log like that chown -R log_adm /log/* chmod -R 544 /log/*It's OK, but just at that time. When a new log file or new directory is created in /log,... (8 Replies)
Discussion started by: bobochacha29
8 Replies

10. Shell Programming and Scripting

List files with date, create directory, move to the created directory

Hi all, i have a folder, with tons of files containing as following, on /my/folder/jobs/ some_name_2016-01-17-22-38-58_some name_0_0.zip.done some_name_2016-01-17-22-40-30_some name_0_0.zip.done some_name_2016-01-17-22-48-50_some name_0_0.zip.done and these can be lots of similar files,... (6 Replies)
Discussion started by: charli1
6 Replies
booleans(5)						       SELinux configuration						       booleans(5)

NAME
booleans - The SELinux booleans configuration files DESCRIPTION
The booleans file, if present contains booleans to support a specific distribution. The booleans.local file, if present contains locally generated booleans. Both files contain a list of boolean names and their associated values. Generally the booleans and/or booleans.local files are not present (they have been deprecated). However if there is an SELinux-aware appli- cation that uses the libselinux functions listed below, then these files may be present: security_set_boolean_list(3) Writes a booleans.local file if flag permanent = 1. security_load_booleans(3) Looks for a booleans and/or booleans.local file at selinux_booleans_path(3) unless a specific path is specified as a parame- ter. booleans(8) has details on booleans and setsebool(8) describes how booleans can now be set persistent across reboots. selinux_booleans_path(3) will return the active policy path to these files. The default boolean files are: /etc/selinux/{SELINUXTYPE}/booleans /etc/selinux/{SELINUXTYPE}/booleans.local Where {SELINUXTYPE} is the entry from the selinux configuration file config (see selinux_config(5)). FILE FORMAT
Both boolean files have the same format and contain one or more boolean names and their value. The format is: boolean_name value Where: boolean_name The name of the boolean. value The default setting for the boolean. This can be one of the following: true | false | 1 | 0 Note that if SETLOCALDEFS is set in the SELinux config file (see selinux_config(5)), then selinux_mkload_policy(3) will check for a bool- eans.local file in the selinux_booleans_path(3) and also a local.users file (see local.users(5)) in the selinux_users_path(3). SEE ALSO
selinux(8), booleans(8), setsebool(8), semanage(8), selinux_booleans_path(3), security_set_boolean_list(3), security_load_booleans(3), selinux_mkload_policy(3), selinux_users_path(3), selinux_config(5), local.users(5) Security Enhanced Linux 28-Nov-2011 booleans(5)
All times are GMT -4. The time now is 06:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy