Sponsored Content
Top Forums Shell Programming and Scripting Copying files based on a pattern Post 302662217 by jim mcnamara on Tuesday 26th of June 2012 10:38:50 AM
Old 06-26-2012
Let's start with finding the files. This finds filee with the EXACT name "MIM". I'm not sure that was what you meant. I assume the MIM files are in some directory tree, let's call it "start"
Code:
find /start -name 'MIM' -exec ls {} \;

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

copying files from one location to another based on a list

I have a text list of about 3,000 file names (image files), which exist on a server and that I want to copy over to another location. I understand the Unix cp code, but what's the string to have it copy multiple files based on an external list? Many thanks! (4 Replies)
Discussion started by: rebornhonest
4 Replies

2. UNIX for Dummies Questions & Answers

copying a pattern of files in one directory into other with new pattern names...

Hi, I have to copy a set of files abc* in /path/ to /path1/ as abc*_bkp. The list of files appear as follows in /path/: abc1 xyszd abc2 re2345 abcx .. . abcxyz I have to copy them (abc* files only) into /path1/ as: abc1_bkp abc2_bkp abcx_bkp .. . (6 Replies)
Discussion started by: new_learner
6 Replies

3. UNIX for Advanced & Expert Users

Moving multiple files based on the pattern

I want to search for a particular file name patterns and move them to a specific folder, is it possible to do it with awk or sed? (1 Reply)
Discussion started by: rudoraj
1 Replies

4. UNIX for Dummies Questions & Answers

List only files based on a pattern

Hi Gurus, I need to list only the files with out certain extension. For eg from the following list of files: I need to only list: Thanks Shash (7 Replies)
Discussion started by: shash
7 Replies

5. Shell Programming and Scripting

Combine 3 files based on a pattern

HI, I have 3 files that contain the following information (sql output from Oracle database stored in a txt file): File1.txt : alter table "SYS"."INT_COST_PRICE" enable row movement; alter table "SYS"."INT_SOH" enable row movement; alter table "SYSMAN"."XX_ACI_SKURTP" enable row movement;... (6 Replies)
Discussion started by: rparavastu
6 Replies

6. Shell Programming and Scripting

Copying files with a specific pattern

Hi All I am trying to copy files from one location to another and given below are some sample ones: aaa_bbb_ccc_ddd_cost_code_20140330.gz aaa_bbb_ccc_ddd_revenue_zone_20140329.gz aaa_bbb_ccc_ddd_benefit_extract_20140330.csv.gz aaa_bbb_ccc_ddd_profit_zone_20150509.csv.gz... (17 Replies)
Discussion started by: swasid
17 Replies

7. Shell Programming and Scripting

Moving old files based on pattern

Hi all I am trying to loop through a directory of files using a given search pattern. some of the files will be duplicated due to the pattern, but of the duplicate files i wanted to move the older files to another location. Is there any straightforward way of doing this ? One of ways I... (1 Reply)
Discussion started by: sthapa
1 Replies

8. Shell Programming and Scripting

Finding all files based on pattern

Hi All, I need to find all files in a directory which are containing specific pattern. Thing is that file name should not consider if pattern is only in commented area. all contents which are under /* */ are commented all lines which are starting with -- or if -- is a part of some sentence... (13 Replies)
Discussion started by: Lakshman_Gupta
13 Replies

9. Shell Programming and Scripting

Copying files to directories based on first 6 character

guys, i did create a script but its too long, though it function the same. # cat nightlyscan.sh #!/usr/ksh deyt=`date +"%Y-%m-%d"` for i in `ls -lrt|grep $deyt|awk '{print $9}'` do cp -f $i /S1/Sophos/logger/ done # but i did not paste it all. this is the desired. (9 Replies)
Discussion started by: kenshinhimura
9 Replies

10. Shell Programming and Scripting

Extract date from files based on file pattern

I want to extract dates from the files and i have different types of files with pattern. I have list file with the patterns and want to date extract based on it in a sh script Files in the directory : file1_20160101.txt file2_20160101_abc.txt filexyz20160101.txt list file with... (2 Replies)
Discussion started by: lijjumathew
2 Replies
Bio::Phenotype::Correlate(3pm)				User Contributed Perl Documentation			    Bio::Phenotype::Correlate(3pm)

NAME
Bio::Phenotype::Correlate - Representation of a correlating phenotype in a given species SYNOPSIS
use Bio::Phenotype::Correlate; $co = Bio::Phenotype::Correlate->new( -name => "4(Tas1r3)", -description => "mouse correlate of human phenotype MIM 605865", -species => $mouse, -type => "homolog", -comment => "type=homolog is putative" ); print $co->name(); print $co->description(); print $co->species()->binomial(); print $co->type(); print $co->comment(); print $co->to_string(); DESCRIPTION
This class models correlating phenotypes. Its creation was inspired by the OMIM database where many human phenotypes have a correlating mouse phenotype. Therefore, this class is intended to be used together with a phenotype class. FEEDBACK
Mailing Lists User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to one of the Bioperl mailing lists. Your participation is much appreciated. bioperl-l@bioperl.org - General discussion http://bioperl.org/wiki/Mailing_lists - About the mailing lists Support Please direct usage questions or support issues to the mailing list: bioperl-l@bioperl.org rather than to the module maintainer directly. Many experienced and reponsive experts will be able look at the problem and quickly address it. Please include a thorough description of the problem with code and data examples if at all possible. Reporting Bugs Report bugs to the Bioperl bug tracking system to help us keep track the bugs and their resolution. Bug reports can be submitted via the web: https://redmine.open-bio.org/projects/bioperl/ AUTHOR
Christian M. Zmasek Email: czmasek-at-burnham.org or cmzmasek@yahoo.com WWW: http://monochrome-effect.net/ Address: Genomics Institute of the Novartis Research Foundation 10675 John Jay Hopkins Drive San Diego, CA 92121 APPENDIX
The rest of the documentation details each of the object methods. new Title : new Usage : $co = Bio::Phenotype::Correlate->new( -name => "4(Tas1r3)", -description => "mouse correlate of human phenotype MIM 605865", -species => $mouse, -type => "homolog", -comment => "type=homolog is putative" ); Function: Creates a new Correlate object. Returns : A new Correlate object. Args : -name => a name or id -description => a description -species => the species of this correlating phenotype [Bio::Species] -type => the type of correlation -comment => a comment init Title : init() Usage : $co->init(); Function: Initializes this Correlate to all "". Returns : Args : name Title : name Usage : $co->name( "4(Tas1r3)" ); or print $co->name(); Function: Set/get for the name or id of this Correlate. Returns : The name or id of this Correlate. Args : The name or id of this Correlate (optional). description Title : description Usage : $co->description( "mouse correlate of human phenotype MIM 03923" ); or print $co->description(); Function: Set/get for the description of this Correlate. Returns : A description of this Correlate. Args : A description of this Correlate (optional). species Title : species Usage : $co->species( $species ); or $species = $co->species(); Function: Set/get for the species of this Correlate. Returns : The Bio::Species of this Correlate [Bio::Species]. Args : The Bio::Species of this Correlate [Bio::Species] (optional). type Title : type Usage : $co->type( "homolog" ); or print $co->type(); Function: Set/get for the type of this Correlate. Returns : The type of this Correlate. Args : The type of this Correlate (optional). comment Title : comment Usage : $co->comment( "doubtful" ); or print $co->comment(); Function: Set/get for an arbitrary comment about this Correlate. Returns : A comment. Args : A comment (optional). to_string Title : to_string() Usage : print $co->to_string(); Function: To string method for Correlate objects. Returns : A string representations of this Correlate. Args : perl v5.14.2 2012-03-02 Bio::Phenotype::Correlate(3pm)
All times are GMT -4. The time now is 02:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy