09-25-2013
Everybody, thanks for the responses. I'm an idiot. I was so happy to find someone with my issue that I didn't bother looking at the OS. I needed this for Windows. I've found a solution for Windows.
Thanks for your help and sorry for wasting your time.
Chlade
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
For example,
/tmp/folder1
includes /tmp/folder1/a /tmp/folder1/b
/tmp/folder2
includes /tmp/c
Is there a command without removing files in /tmp/folder2 first to copy the /tmp/folder1 to /tmp/folder2?
and the result should be
/tmp/folder2 will include only /tmp/folder2/a... (2 Replies)
Discussion started by: lalelle
2 Replies
2. UNIX for Advanced & Expert Users
Hello all,
I'm trying to accomplish that if a file gets written to folder /path/to/a/ it gets automatically copied into /path/to/b/ the moment its get written.
I thought of writing a shell script and cron it that every X amount of minutes it copies these files over but this will not help me... (2 Replies)
Discussion started by: Bashar
2 Replies
3. Shell Programming and Scripting
Hi all,
*I use Uwin and Cygwin emulator.
I´m trying to search for all text files in the current folder (C/Files) and its sub folders using
find -depth -name "*.txt"
The above command worked for me, but now I would like to copy all found text files to a new folder (C/Files/Text) with ... (4 Replies)
Discussion started by: cgkmal
4 Replies
4. Shell Programming and Scripting
Hi, all:
I've got two folders, folder A contains some image files (say, 100 files) in .jpg format;
folder B contains all description files (say, 500 files) in .txt format.
All image files in folder A are able to find their corresponding description files in folder B.
That is to say,... (3 Replies)
Discussion started by: jiapei100
3 Replies
5. Shell Programming and Scripting
Hi everyone,
when I try to copy *.gz files run cp within the correct source folder it works as follow:
Source folder = C:/Documents and Settings/user/Recent papers/2771/
Destination folder = C:/Documents and Settings/user/My documents/1532/temp
cp *.gz "C:/Documents and Settings/user/My... (2 Replies)
Discussion started by: cgkmal
2 Replies
6. UNIX for Dummies Questions & Answers
Hi ,
I have a file like this, i need to trace its path and copy the files from its path to one folder. I need to replace elib.com,melib.com to F:\.Here i need to copy to a folder called image. Please help
http://elib.com/SHC/NLNLHB/020001498.pdf ... (4 Replies)
Discussion started by: umapearl
4 Replies
7. Shell Programming and Scripting
This has been tearing my hair out.
I need to:
1: compare server1:/data/archive/ to server2:/data/archive/ (through rsync, ssh, etc)
2: filenames that don't match, get copied (scp) to server2:/data/
server1 and server2 have ssh, scp, rsync access between eachother.
Is there any option in... (3 Replies)
Discussion started by: damang111
3 Replies
8. Shell Programming and Scripting
Hi experts,
I am coming to you with this basic question on copying a folder and its content from one location to another folder using PERL script.
This is my requirement.
I have a folder AB under /users/myhome
I want to copy AB and its contents to /user/workspace.
Finally it should... (1 Reply)
Discussion started by: amvarma77
1 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have a folder which contains some files like this.
bin.000001
bin.000002
bin.000003
bin.000004
bin.000005
bin.000129
bin.index
I want to copy all these files to a new folder except the last files.
Please provide some ideas.
Please use next time code tags for your code... (6 Replies)
Discussion started by: arijitsaha
6 Replies
10. Shell Programming and Scripting
hello
does someone want to help me for this one ?
i want to rename files & a folder according to the similarities in filenames
for example :
the file with the good name
cglogo tougl1953 dgmel bogd 01 -- ttgductoog ggdté gollogtd.ext1the others files needed to be renamed
cglogo... (5 Replies)
Discussion started by: mc2z674gj
5 Replies
LEARN ABOUT DEBIAN
test::folder
Test::Folder(3pm) User Contributed Perl Documentation Test::Folder(3pm)
NAME
Test::Folder - test folder attributes
SYNOPSIS
use Test::More ...;
use Test::Folder;
DESCRIPTION
This modules provides a collection of test utilities for folder attributes. Use it in combination with Test::More in your test programs.
FUNCTIONS
folder_exists_ok(FOLDERNAME [, TESTNAME] )
Ok if the folder exists, and not ok otherwise.
folder_not_exists_ok(FOLDERNAME [, TESTNAME] )
Ok if the folder does not exist, and not ok otherwise.
folder_empty_ok(FOLDERNAME [, TESTNAME] )
Ok if the folder is empty (contains no files or subfolders), and not ok otherwise.
folder_not_empty_ok(FOLDERNAME [, TESTNAME] )
Ok if the folder is not empty (contains any files or subfolders), and not ok otherwise.
folder_readable_ok(FOLDERNAME [, TESTNAME] )
Ok if the folder is readable, and not ok otherwise.
folder_not_readable_ok(FOLDERNAME [, TESTNAME] )
Ok if the folder is not readable, and not ok otherwise.
folder_writable_ok(FOLDERNAME [, TESTNAME] )
Ok if the folder is writable, and not ok otherwise.
folder_not_writable_ok(FOLDERNAME [, TESTNAME] )
Ok if the folder is not writable, and not ok otherwise.
folder_executable_ok(FOLDERNAME [, TESTNAME] )
Ok if the folder is executable, and not ok otherwise.
folder_not_executable_ok(FOLDERNAME [, TESTNAME] )
Ok if the folder is not executable, and not ok otherwise.
TO DO
There are probably some more folder attributes that can be tested. If you need them, please ask (or better yet, contribute code!).
AUTHOR
Martin 'Kingpin' Thurn, "mthurn at cpan.org", <http://tinyurl.com/nn67z>.
BUGS
Please report any bugs or feature requests to "bug-test-dir at rt.cpan.org", or through the web interface at
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Dir>. I will be notified, and then you'll automatically be notified of progress on
your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Test::Folder
You can also look for information at:
o RT: CPAN's request tracker
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Test-Dir>
o AnnoCPAN: Annotated CPAN documentation
<http://annocpan.org/dist/Test-Dir>
o CPAN Ratings
<http://cpanratings.perl.org/d/Test-Dir>
o Search CPAN
<http://search.cpan.org/dist/Test-Dir>
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
Copyright (C) 2007-2008 Martin 'Kingpin' Thurn
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2011-02-20 Test::Folder(3pm)