Sponsored Content
Top Forums Shell Programming and Scripting Backup script: Copying and removing directories based on list Post 302392346 by dotancohen on Thursday 4th of February 2010 05:47:19 AM
Old 02-04-2010
Thanks, agn. How can I treat the DONT_COPY variable as a file, or alternatively, can I expand it to add the --exclude= text before all entries?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to list changes in Directories

Hello guys it's me again, I need some help. What I'm doing is listing all the file and directories Recusively and using it a a master file. Then I need to do the same the nest day to make sure nothing was deleted or modified. What happen is file in one of out major directories was deleted without... (2 Replies)
Discussion started by: aojmoj
2 Replies

2. Shell Programming and Scripting

help with script to list directories

Hi All I have two scripts which i used to try and list all the directories one using 'function', which only lists the first directory and does not show directories within directories. function ListDir () { for arg in $(ls $HOME) do if then echo $arg ... (2 Replies)
Discussion started by: chassis
2 Replies

3. UNIX for Dummies Questions & Answers

copying files from one location to another based on a list

I have a text list of about 3,000 file names (image files), which exist on a server and that I want to copy over to another location. I understand the Unix cp code, but what's the string to have it copy multiple files based on an external list? Many thanks! (4 Replies)
Discussion started by: rebornhonest
4 Replies

4. Shell Programming and Scripting

a remove script taken in input a file which contain a list of directories

Hi, I'm looking to delete some files from directories. I've just put in a file the location of these files. e.g: in file supprs.txt there is: /usr/host/t1.txt /etc/dev/u1.java /home/new/files/view.c Is it possible to take this file "supprs.txt" as a parameter in a shell command ? (2 Replies)
Discussion started by: yeclota
2 Replies

5. Shell Programming and Scripting

Copying a files from a filter list and creating their associated parent directories

Hello all, I'm trying to copy all files within a specified directory to another location based on a find filter of mtime -1 (Solaris OS). The issue that I'm having is that in the destination directory, I want to retain the source directory structure while copying over only the files that have... (4 Replies)
Discussion started by: hunter55
4 Replies

6. Shell Programming and Scripting

Removing and copying in shellscript

Hi, I need to edit an xml file as such <B="A"><!]></B> so that the output is <A><!]></A> This is a massive xml file and the A B and C are always different however the output should always be the same. Does anyone know any solution to this please? thanks in advance (2 Replies)
Discussion started by: legolad
2 Replies

7. Shell Programming and Scripting

Looping inside directories based on a file which contains file directory list

Hi All, Please help. I have got a file which contains a listing of a file and some directories after it, one by one. I am calling this file xyz.txt here file1 dir1 dir2 dir3 dir4 file2 dir5 dir6 dir7 dir8 file3 dir9 dir10 dir11 dir12 (6 Replies)
Discussion started by: Piyush Jakra
6 Replies

8. Shell Programming and Scripting

Chose list of sub directories in a bash script file

Hi, I have a command in my bash script, searchDirectoryName.sh: DIR_NAME=$(find . -type d) echo "${DIR_NAME}" . ./Dir1 ./Dir1/1.0.2.1 ./Dir2 ./Dir2/1.1 ./Dir3 ./Dir3/2.2.1 How can I select only following directory names with second subdirectoies and without first ./ in the... (3 Replies)
Discussion started by: hce
3 Replies

9. Shell Programming and Scripting

Need help in finding and copying list of files using bash shell script

Dear All, I have a situation where I want to copy some files of type .txt. These files are o/p from one program. Some of the files are named as fileName .txt instead of fileName.txt after fileName by mistake I have specified "space". Now I want to move these files as follows. mv fileName*... (13 Replies)
Discussion started by: linuxUser_
13 Replies

10. Shell Programming and Scripting

Copying files to directories based on first 6 character

guys, i did create a script but its too long, though it function the same. # cat nightlyscan.sh #!/usr/ksh deyt=`date +"%Y-%m-%d"` for i in `ls -lrt|grep $deyt|awk '{print $9}'` do cp -f $i /S1/Sophos/logger/ done # but i did not paste it all. this is the desired. (9 Replies)
Discussion started by: kenshinhimura
9 Replies
AGGREGATE_METHODS_BY_REGEXP(3)						 1					    AGGREGATE_METHODS_BY_REGEXP(3)

aggregate_methods_by_regexp - Selective class methods aggregation to an object using a regular expression

SYNOPSIS
void aggregate_methods_by_regexp (object $object, string $class_name, string $regexp, [bool $exclude = false]) DESCRIPTION
Aggregates methods from a class to an existing object using a regular expression to match method names. The class constructor or methods whose names start with an underscore character (_), which are considered private to the aggregated class, are always excluded. PARAMETERS
o $object - o $class_name - o $regexp - o $exclude - The optional parameter $exclude is used to decide whether the regular expression will select the names of methods to include in the aggregation (i.e. $exclude is FALSE), or to exclude from the aggregation ($exclude is TRUE). RETURN VALUES
No value is returned. SEE ALSO
aggregate(3), aggregate_info(3), aggregate_methods(3), aggregate_methods_by_list(3), aggregate_properties(3), aggregate_proper- ties_by_list(3), aggregate_properties_by_regexp(3), deaggregate(3). PHP Documentation Group AGGREGATE_METHODS_BY_REGEXP(3)
All times are GMT -4. The time now is 05:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy