04-25-2012
What Operating System and version do you have and what Shell are you using.
Does your script actually work? It looks like it creates folders called 1 , 2 , 3 etc. . The second and subsequent time the script is run it will go very wrong because it will try redistributing the directories created on the previous run.
How many files are there exactly?
Is there any possibility of exceeding LHR-999 ?
If you are still at design stage, I would avoid having hyphen characters in filenames.
Last edited by methyl; 04-25-2012 at 08:11 PM..
Reason: typos
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is this possible? Let me know If I need specify further on what I am trying to do- I just want to spare you the boring details of my personal file management.
Thanks in advance-
Brian- (2 Replies)
Discussion started by: briandanielz
2 Replies
2. UNIX for Dummies Questions & Answers
hi all.
Please help me with archiving previous day syslog files.
the files have no extension and have the format YYYY-MM-DD.
I want to archive the file then move it to some other machine.
thanks. (2 Replies)
Discussion started by: coolatt
2 Replies
3. Shell Programming and Scripting
Hi
I am Trying to Write a script that can goto 4 different directorys on the server & remove the Files older then 30 days ??
/logs
logs1 logs2 logs3
Now I need to remove files under
logs1 logs2 logs3 which are older then 30 days whose name stat 'sit' , 'mig','bld' .
in... (3 Replies)
Discussion started by: Beginner123
3 Replies
4. Shell Programming and Scripting
hi all,
here is the description to my problem.
input parameter: $date1
based on the date i need to select three files starting with audit.log* based on its modified date, a date before, a date after(if its exists). We need to compare the input date to modified date of the file. And then... (3 Replies)
Discussion started by: ashrocks
3 Replies
5. Linux
Hi Team,
I have over 1 lakh pdf files.
I want to create folders like Disk-1, Disk-2 ..... & want to move 3000 pdfs per folder. Can i do it by script? Please help me.
Thanks & Regards
Parag Nehete (4 Replies)
Discussion started by: paragnehete
4 Replies
6. Shell Programming and Scripting
Hi All,
Am new to both Unix & this Forum - Need some help on a script that I am trying to write:
In a Directory i have few text files which might or might not contain some text that I am trying to find.
Once that text is found in any of the files, it needs to be removed from the file
... (6 Replies)
Discussion started by: rituparna_gupta
6 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
I have a large amount of files that I need to copy from one server to another server using SFTP. Can comeone please help me with the command I would use here?
Here is what I am thinking, but being new at this I know this is probably wrong:
Login to the destination host using... (1 Reply)
Discussion started by: SalientAnimal
1 Replies
8. Shell Programming and Scripting
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
9. UNIX for Dummies Questions & Answers
Hi All,
Daily i am doing the house keeping in one of my server and manually moving the files which were older than 90 days and moving to destination folder.
using the find command . Could you please assist me how to put the automation using the shell script .
... (11 Replies)
Discussion started by: venkat918
11 Replies
10. Shell Programming and Scripting
I've got this script to loop through all folders and move files that are more than 2 years old. I'm using the install command because it creates the necessary directories on the destination path and then I remove the source. I'd like to change the script to use the mv command since it is much... (4 Replies)
Discussion started by: consultant
4 Replies
LEARN ABOUT DEBIAN
dh_autoreconf
DH_AUTORECONF(1) dh-autoreconf DH_AUTORECONF(1)
NAME
dh_autoreconf - Call autoreconf -f -i and keep track of the changed files.
SYNOPSIS
dh_autoreconf [debhelper options] [-Xitem] [--mode=mode] [program -- params]
DESCRIPTION
dh_autoreconf is responsible for calling autoreconf and creating the files debian/autoreconf.before and debian/autoreconf.after which
contain checksums of all files before/after the build. It is complemented by dh_autoreconf_clean which creates a list of all changed and
added files and removes them.
Please note that dh_autoreconf can only be run once. Thus, if you need to run multiple commands, use a script or similar. An example is
given in dh-autoreconf(7).
FILES
debian/autoreconf
This file can contain a list of directories. If present, dh_autoreconf will only scan the given directories for changes. If no special
command is given to dh_autoreconf, it will also forward the directory list to autoreconf which causes it to be run only on those sub
directories.
OPTIONS
-Xitem --exclude=item
Exclude files that contain "item" anywhere in their filename from being checked for changes. This means that those files won't be
deleted by "dh_autoreconf_clean" even if there are changes. You may use this option multiple times to build up a list of things to
exclude.
Starting with version 3, the directories of common version control systems such as cvs, git, hg, svn, and bzr are excluded
automatically.
--mode=mode
Change the way in which modifications to files are detected. The default mode is md5 for using MD5 checksums, but there is also
timesize for using the time of the last modification and the file size.
--as-needed
Enable support for -Wl,--as-needed in all ltmain.sh files identical to the one of the libtool package. This only works in the MD5 mode
(the default one). The changes are reverted in dh_autoreconf_clean. You should not prevent LIBTOOLIZE from running with this, as it
only works correctly with libtoolize running.
program -- params
Run the program given by program with the arguments given by params instead of autoreconf -f -i. If you need to run multiple commands,
put them in a script and pass the script instead (or add a target to debian/rules).
ENVIRONMENT
For each tool executed by autoreconf(1), one can export a variable with the uppercase name of the tool to the specific program which shall
be run, including true to prevent the tool in question from being run. The following example shows the beginning of a debian/rules for a
package where automake 1.10 shall be run instead of the default automake version and libtoolize shall not be run:
#!/usr/bin/make -f
export AUTOMAKE = automake1.10
export LIBTOOLIZE = true
SEE ALSO
debhelper(7), dh_autoreconf_clean(1), dh-autoreconf(7)
AUTHOR
Julian Andres Klode <jak@debian.org>
dh-autoreconf v7 2012-11-22 DH_AUTORECONF(1)