03-13-2001
I don't beleive that mv has that capability. It might be easier to move everything
[code]mv * /dest/directory[code]
and then move your exception back
[code]mv /dest/directory/*.sav /orig/dir[code]
mv doesn't modify the last modified date.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi its me again am having some prob to validate a script..
The script contain some mv file commands and i have to test whether the mv command has been executed successfully my move command are as follows.........
mv -f... (6 Replies)
Discussion started by: Lutchumaya
6 Replies
2. Solaris
Hi,
I am using SOLARIS 9.
I am trying to move a huge number of files using the mv commands below-
#mv inbuffer/* /tmp/inbuffer/
but system says arguments too long..
Could u please tell which command i need to put for moving AND copying ???
Many Thanks in advance--
Purple (3 Replies)
Discussion started by: thepurple
3 Replies
3. Shell Programming and Scripting
Hi all,
I am using c-shell ,Sun OS. When i am trying to move (mv) a file size more then 2 GB i am getting error like -- parameter value too high -- also ls -ltr command was not working on that .
But when i move a file of size less then or just above 2gb ,It is working fine .
Can... (2 Replies)
Discussion started by: jambesh
2 Replies
4. Shell Programming and Scripting
Is there a way to undo a move after running a command such as this:
find ./* -type f -name "*.pdf" -exec mv {} /new/dir \;
:confused: (3 Replies)
Discussion started by: bbbngowc
3 Replies
5. Shell Programming and Scripting
Hi All,
I am getting an problem. I am using ssh command in shell script to copy all files from a dir to another.
find /home/dee -type f ! -newer /tmp/new | xargs -i cp {} /home/past{}
This works fine but when I replace cp with mv, nothing happens! not even error.
Can anybody please... (0 Replies)
Discussion started by: Deei
0 Replies
6. UNIX for Dummies Questions & Answers
Anyone have an idea to why the statement below does not work within a script but works when issued from the command line?
mv /dir_files/submit.log* /bintemp (1 Reply)
Discussion started by: bwcberb
1 Replies
7. UNIX for Dummies Questions & Answers
Hi I need to move the first file in a folder to an another folder but am facing issues with the below cmd. CAN someone correct me
Ex :
Folder :data/cat/tst
ad2
ad4
ad5
ad6
output req:
data/cat/man
ad2
Command Used :
ls -lt ad*|head -1|mv/data/cat/man (3 Replies)
Discussion started by: akshay01987
3 Replies
8. Shell Programming and Scripting
I need help with a move command from one folder to another
In current folder there are files like test_1.txt, test_2.txt
I want to move this to another folder /archive with renaming files as
test_1_old.txt, test_2_old.txt (actually in old it should be a timestamp which I do it through etl... (8 Replies)
Discussion started by: eskay
8 Replies
9. Shell Programming and Scripting
Hi all,
I am trying to find files newer than a given file and them mv them to a new location.
So I far I have:
find . ! -newer <file_name> -exec ls -l {} \;
and
find . ! -newer <file_name> -exec mv /TEMP_LOCATION {} \;
find is not liking this.
Anyone know how to modify the last... (2 Replies)
Discussion started by: jonnyd
2 Replies
10. UNIX for Beginners Questions & Answers
Hey all, I really need help with some homework I'm having on UNIX. This probably sounds stupid, but I'm being asked to move a file to a specific directory and rename it a specified name in one command. I know how to do it in more than one command, I just can't seem to figure it out using only one... (1 Reply)
Discussion started by: ayylmao12
1 Replies
LEARN ABOUT DEBIAN
masonx::processdir
MasonX::ProcessDir(3pm) User Contributed Perl Documentation MasonX::ProcessDir(3pm)
NAME
MasonX::ProcessDir - Process a directory of Mason 2 templates
VERSION
version 0.02
SYNOPSIS
use MasonX::ProcessDir;
# Generate result files in the same directory as the templates
#
my $pd = MasonX::ProcessDir->new(
dir => '/path/to/dir'
);
$pd->process_dir();
# Generate result files in a separate directory
#
my $pd = MasonX::ProcessDir->new(
source_dir => '/path/to/source/dir',
dest_dir => '/path/to/dest/dir'
);
$pd->process_dir();
DESCRIPTION
Recursively processes a directory of Mason 2 templates, generating a set of result files in the same directory or in a parallel directory.
Every file with suffix ".mc" will be processed, and the results placed in a file of the same name without the suffix. ".mi", autobase and
dhandler files will be used by Mason when processing the templates but will not generate files themselves.
For example, if the source directory contains
Base.mc
httpd.conf.mc
proxy.conf.mc
etc/crontab.mc
blah.mi
somefile.txt
and we run
my $pd = MasonX::ProcessDir->new(
source_dir => '/path/to/source/dir',
dest_dir => '/path/to/dest/dir'
);
$pd->process_dir();
then afterwards the destination directory will contain files
httpd.conf
proxy.conf
etc/crontab
somefile.txt
where foo and bar are the results of processing foo.mc and bar.mc through Mason. Base.mc and blah.mi may be used during Mason processing
but won't generate result files themselves.
This class is a convenience extension of Any::Template::ProcessDir.
CONSTRUCTOR
Specifying directory/directories
o If you want to generate the result files in the same directory as the templates, just specify dir.
my $pd = MasonX::ProcessDir->new(
dir => '/path/to/dir',
...
);
o If you want to generate the result files in a separate directory from the templates, specify source_dir and dest_dir.
my $pd = MasonX::ProcessDir->new(
source_dir => '/path/to/source/dir',
source_dir => '/path/to/dest/dir',
...
);
Mason options
mason_options
An optional hash of options to the Mason interpreter. For example, the default Mason data directory will be ".mason" under the source
directory, but you can override this:
mason_options => { data_dir => '/path/to/data/dir' }
Options inherited from Any::Template::ProcessDir
See Any::Template::ProcessDir for other options, such as
dir_create_mode
file_create_mode
readme_filename
SUPPORT AND DOCUMENTATION
Bugs and feature requests will be tracked at RT:
http://rt.cpan.org/NoAuth/Bugs.html?Dist=MasonX-ProcessDir
bug-masonx-processdir@rt.cpan.org
The latest source code can be browsed and fetched at:
http://github.com/jonswar/perl-masonx-processdir
git clone git://github.com/jonswar/perl-masonx-processdir.git
SEE ALSO
Mason, Any::Template::ProcessDir
AUTHOR
Jonathan Swartz <swartz@pobox.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Jonathan Swartz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-03-07 MasonX::ProcessDir(3pm)