Hmmm, well it depends how smart you need it to be. You could try something like:-
You may well want to blend the two so you end up with subdirectories of each of these having a limited number of files, but that would be more fun to work out yourself, unless you get completely stuck.
Let me know if this is a suitable suggestion or if I have missed the point.
Robin
Liverpool/Blackburn
Uk
Last edited by rbatte1; 02-09-2012 at 08:08 AM..
Reason: Like a fool, I forgot the code tags :o
Hi,
I have a script that can only handLE limited number of input files.
I need to be able to write a command (or a script) that:
1> copies N number of files from one directory (A) to another (B).
2> Files that are moved need to be renamed.
3> Files picked to be moved have... (1 Reply)
Hi ,
I want to copy files from one dir to anothe dir and check if destination dir exists ,if not exist ,has to create but when executing the below schell script ,the destination directory not exist and exit the shell script.
#!/bin/sh
src_path=/home/owngdw/abc
tgt_path=/home/owngdw/abc/xyz
if... (6 Replies)
Hi everyone. I am trying to write a bash script that will copy files from one directory to another but I need to be able to check the directory that I'm copying the files to and see if the file already exists. If it does I need to add a number at the end of the copied file. Thanks for your help. (3 Replies)
hi,
I want to copy files from source directory based on input file (or output of previous command) and i want to have the SAME DIRECTORY STRUCTURE.
Note that i will have other files and directories which i dont want to copy to destination.
For example, dir source has following content:... (22 Replies)
Hello Comunity
I am trying to make a bash shell script that it copies files and subdirs(with files) to a new dir. I would like the dest_dir to contain only subdirectories with files not other subdirs inside.
it called : cpflatdir src_dir dest_dir
Pleaze help me!
Thank you in... (2 Replies)
Hi,
I am currently using SFTP 'put' command to copy all files to remote server and then delete the copied files from source directory.
Can anyone help me with a single command to copy and remove files in one go?
Thanks and Regards,
Chetan Vyas (5 Replies)
I have two directories that are mostly the same:
dir1
dir2
Is there an easy way to take the output of diff and copy files from dir1 that do not exist in dir2 - but copy them to the same path (many nested directories).
am only trying to copy files in dir1 that do not exist in dir2.
... (5 Replies)
Hi all,
I'd very grateful for some help with the following:
I have a directory with several subdirectories with files in them. All files are named different, even between different subdirectories. I also have a list with some of those file names in a txt file (without the path, just the file... (5 Replies)
i have directory /abcd and i want to copy all today date files in /xyz directory.
i am able to see the files by using below command but not able to understand copy.
find . -mtime -1 -type f -exec ls -l {} \; (2 Replies)
Discussion started by: learnbash
2 Replies
LEARN ABOUT DEBIAN
socialtext::resting::localcopy
Socialtext::Resting::LocalCopy(3pm) User Contributed Perl Documentation Socialtext::Resting::LocalCopy(3pm)NAME
Socialtext::Resting::LocalCopy - Maintain a copy on disk of a workspace
SYNOPSIS
Socialtext::Resting::LocalCopy allows one to copy a workspace into files on the local disk, and to update a workspace from files on disk.
METHODS
new
Create a new LocalCopy object. Requires a "rester" parameter, which should be a Socialtext::Rester-like object.
pull
Reads a workspace and pulls all of the pages into files in the specified directory. Options are passed in as a list of named options:
dir - The directory the files should be saved to.
tag - an optional tag. If specified, only tagged files will be pulled.
push
Reads a directory and pushes all the files in that directory up to the specified workspace. Options are passed in as a list of named
options:
dir - The directory the files should be saved to.
tag - an optional tag. If specified, only tagged files will be pushed.
Note - tag is not yet implemented.
BUGS
Attachments are not yet supported. Push by tag is not yet supported.
AUTHOR
Luke Closs, "<luke.closs at socialtext.com>"
COPYRIGHT & LICENSE
Copyright 2007 Luke Closs, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2009-01-09 Socialtext::Resting::LocalCopy(3pm)