10-26-2011
Hi felipe.vinturin and thanks for the quick reply
I've tried your code (i inserted the path in <Path> which is /home/dataset/) and i'm getting the error:
find `1': No such file or directory
(i know it might be a stupid question but is my first time using find and a .sh script)
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a report file that is generated every day by a scheduled process.
Each day the file is written to a directory named .../blah_blah/Y07/MM-DD-YY/reportmmddyy.tab
I want to copy all of this reports to a separate directory without having to do it one by one.
However, if I try
cp... (3 Replies)
Discussion started by: ken2834
3 Replies
2. Shell Programming and Scripting
Hi,
My requirement is to have a shell script:
SOURCE_DIR=/usr/logs/restore/ --> Contains multiple subdirectories
TARGET_DIR=/usr/data/logs --> Existing folders which contain similar subdirectories
I want to copy only newer or uniquie files which are present in $SOURCE_DIR and its... (2 Replies)
Discussion started by: sujoy101
2 Replies
3. UNIX for Dummies Questions & Answers
Hi guys,
I want to copy folder and sub folders only. I don't want the files. If i use cp -r command it will copy entirely with files.
Could any one suggest me.
Thanks in advance (1 Reply)
Discussion started by: karthik82
1 Replies
4. UNIX for Dummies Questions & Answers
Hello there, I'm a total noob to shell scripting. :)
What I want to do is compare the contents of Folder A and Folder B, and copy any files in Folder A that do not exist in Folder B over to Folder B.
I have gotten so far as:
diff -rq folderA folderB
which returns the names of the files,... (3 Replies)
Discussion started by: raaaaaa
3 Replies
5. UNIX for Dummies Questions & Answers
how can i copy those files into other directories have the same name but different in the end
i have files in directory called test:
10_10_asdadfsdfad.txt
10_10_11_asdawqefwkjasd.txt
10_10_11_12_asdafjjhoqwd.txt
i want to put them in exist directory thart i have on my system
i have... (1 Reply)
Discussion started by: t17
1 Replies
6. Shell Programming and Scripting
I am in a situation where I have some hundreds of thousands of files in a directory (name of directory: big_directory). Now, working on this directory is extremely slow.
I now plan to do this:
Copy 1000 files in each of the directories by creating the directories automatically. All files have... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies
7. Shell Programming and Scripting
So I have extremely limited experience with shell scripting and I was hoping someone could point out a few commands I need to use in order to pull this off with a shell script like BASH or whatnot (this is on OS X).
I need to search out for filenames with account numbers in the name itself... (3 Replies)
Discussion started by: flyawaymike
3 Replies
8. Shell Programming and Scripting
Hi,
I have a requirement where I have to connect to another server and copy directories from one server to another
Directories on the Source server look like below (YYYY-MM-DD- 1 to 23)
drwxr-xr-x 2 test_user dmfmart 422 Sep 1 23:45 2014-09-01-18drwxr-xr-x 2 test_user dmfmart ... (1 Reply)
Discussion started by: arunkesi
1 Replies
9. Shell Programming and Scripting
Hi Guys,
I need to copy the files to respective directories based on name of the file. My script is something like below
con=$1
for file in `cat $con`
do
file_tmp=$(ls -t1 $path| grep -i $file | head -n 1)
echo $file_tmp
if
then
cp $path$file_tmp $DIR/ap
if
then... (16 Replies)
Discussion started by: Master_Mind
16 Replies
10. Shell Programming and Scripting
To bakunin and corona688:
My result when text in file is
ms_ww_546
ms_rrL_99999
ms_nnn_67_756675
is
https://www.unix.com/C:\Users\Fejoz\Desktop\ttt.jpg
I hope you can see the picture. There is like a "whitespace character" after 2 of the 3 created directories.
---------- Post... (0 Replies)
Discussion started by: setub
0 Replies
LEARN ABOUT DEBIAN
class::makemethods::utility::inheritable
MakeMethods::Utility::Inheritable(3pm) User Contributed Perl Documentation MakeMethods::Utility::Inheritable(3pm)
NAME
Class::MakeMethods::Utility::Inheritable - "Inheritable" data
SYNOPSIS
package MyClass;
sub new { ... }
package MySubclass;
@ISA = 'MyClass';
...
my $obj = MyClass->new(...);
my $subobj = MySubclass->new(...);
use Class::MakeMethods::Utility::Inheritable qw(get_vvalue set_vvalue );
my $dataset = {};
set_vvalue($dataset, 'MyClass', 'Foobar'); # Set value for class
get_vvalue($dataset, 'MyClass'); # Gets value "Foobar"
get_vvalue($dataset, $obj); # Objects "inherit"
set_vvalue($dataset, $obj, 'Foible'); # Until you override
get_vvalue($dataset, $obj); # Now finds "Foible"
get_vvalue($dataset, 'MySubclass'); # Subclass "inherits"
get_vvalue($dataset, $subobj); # As do its objects
set_vvalue($dataset, 'MySubclass', 'Foozle'); # Until we override it
get_vvalue($dataset, 'MySubclass'); # Now finds "Foozle"
get_vvalue($dataset, $subobj); # Change cascades down
set_vvalue($dataset, $subobj, 'Foolish'); # Until we override again
get_vvalue($dataset, 'MyClass'); # Superclass is unchanged
DESCRIPTION
This module provides several functions which allow you to store values in a hash corresponding to both objects and classes, and to retrieve
those values by searching a object's inheritance tree until it finds a matching entry.
This functionality is used by Class::MakeMethods::Standard::Inheritable and Class::MakeMethods::Composite::Inheritable to construct methods
that can both store class data and be overriden on a per-object level.
REFERENCE
find_vself
$vself = find_vself( $dataset, $instance );
Searches $instance's inheritance tree until it finds a matching entry in the dataset, and returns either the instance, the class that
matched, or undef.
get_vvalue
$value = get_vvalue( $dataset, $instance );
Searches $instance's inheritance tree until it finds a matching entry in the dataset, and returns that value
set_vvalue
$value = set_vvalue( $dataset, $instance, $value );
Searches $instance's inheritance tree until it finds a matching entry in the dataset, and returns that value
perl v5.10.1 2004-09-06 MakeMethods::Utility::Inheritable(3pm)