Hi All
i want to write a script which could copy one file at a time from one directory to another directory.
Scenerio:
Let's say i have 100 file in a dirctory,so i want to copy one file at a time to another directory with a sleep statement in between that of 30 secs.
please help me... (1 Reply)
Hi,
I have to transfer five files from one directory to another directory in unix with the help of shell scripts. This shell script calling the param file as input parameter. Every day one file will come and fall on my source directory. Remaining files will fall on any one of the day of the... (5 Replies)
I Need help for one requirement,
I want to move the latest/Older file in the folder to another file. File have the datetimestamp in postfix.
Example:
Source Directory : \a
destination Directory : \a\b
File1 : xy_MMDDYYYYHHMM.txt (xy_032120101456.txt)
File2: xy_MMDDYYYYHHMM.txt... (1 Reply)
Script must removes files from the first directory if there is a file with same name in the second directory
Script passed to the two directories, it lies with them in one directory:
sh script_name dir1 dir2
This is my version, but it does not work :wall:
set - $2/*
for i
do
set -... (6 Replies)
I am trying to do the following task :
export ENV=aaa
export ENV_PATH=$(cd /apps | ls | grep $ENV)
However, it's not working. What's the way to change to directory and search some file in that directory in single command
Please help. (2 Replies)
I need a script which should watch a directory for a file with specific directory.
If it finds a file in directory, it should search for few specific keyword in the file. if the keyword exists, it should trim string from specific column.
The file should be moved to another directory and the a... (8 Replies)
I have a script, which is checking if file exists and move it to another directory
if
then
mkdir -p ${LOCL_FILES_DIR}/cool_${Today}/monthly
mv report_manual_alloc_rpt_A_I_ASSIGNMENT.${Today}*.csv ${LOCL_FILES_DIR}/cool_${Today}/monthly
... (9 Replies)
How to get a file 'zlib.h' in an entire directory with an excluded directory specified lives under that starting directory by using find command, as it failed on:
$ find . -name 'zlib.h' -a -ipath 'CHROME.TMP' -prune -o -print
it'll just list entirely up (2 Replies)
Discussion started by: abdulbadii
2 Replies
LEARN ABOUT DEBIAN
padre::task::file
Padre::Task::File(3pm) User Contributed Perl Documentation Padre::Task::File(3pm)NAME
Padre::Task::File - File operations in the background
SYNOPSIS
# Recursively delete
Padre::Task::File->new(
remove => 'C:fooaraz',
)->schedule;
DESCRIPTION
The File::Remove CPAN module is a specialised package for deleting files or recursively deleting directories.
As well as providing the basic support for recursive deletion, it adds several other important features such as removing readonly limits on
the fly, taking ownership of files if permitted, and moving the current working directory out of the deletion path so that directory
cursors won't block the deletion (a particular problem on Windows).
The task takes the name of a single file or directory to delete (for now), and proceeds to attempt a recursive deletion of the file or
directory via the File::Remove "remove" method.
In the future, this module will also support more types of file operations and support the execution of a list of operations.
METHODS
new
my $task = Padre::Task::File->new(
remove => '/foo/bar/baz',
);
Creates a new deletion task.
Takes a single parameter "remove" which must be an absolute path to the file to delete (as the "current directory" may change between the
time the removal task is created and when it is executed).
remove
The "remove" accessor returns the absolute path of the file or directory the task will try to delete (or tried to delete in the case of
completed tasks).
SEE ALSO
Padre, Padre::Task, File::Remove
COPYRIGHT
Copyright 2008-2012 The Padre development team as listed in Padre.pm.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself.
The full text of the license can be found in the LICENSE file included with this module.
perl v5.14.2 2012-06-27 Padre::Task::File(3pm)