Hello,
I'm spendind hours trying to figure out how a script could remove files and folders older than 30days in a given volume (/dataVolumes/Booba.1.0).
Within this volume, all users have their personal folder that starts with "RC-..", so the script should skip them for deletion.
I will... (4 Replies)
Hello everyone,
My OS is AIX 5.2
I would like some help in getting command syntax that does the following:
1. Searches simultaneously several directories downward;
2. Checks every subdirectory in each directory (and so on...) for file names that contain certain characters such as “~”, start... (0 Replies)
Hi all,
i would like to create a script that move and rename files from all the subdirectories of a given directory to others subdirectories of the same directory based on "matching" criteria in the "from" and "to" parameters.
Example:
Begin script
from /home/test/1_T_2008* move to... (3 Replies)
I have a file which will have rows like shown below,
ST*820*316054716
RMR*IV*11333331009*PO*40.31
REF*IV*22234441009*xsss471-2762
DTM*003*091016
ENT*000006
RMR*IV*2222234444*PO*239.91
REF*IV*1234445451009*LJhjlkhkj471-2762 </SPAN>
DTM*003*
091016
RMR*IV*2223344441009*PO*40.31... (18 Replies)
Hi All,
I am creting archive script in which i need to split the source file's to different target folder's based on the input file name first character.
Input1.txt -- will contains file names that are needs to be Archive.
Input1.txt
A1213355
B2255666
C2254555
A6655444
C5566445
... (2 Replies)
I have a file.....
xxx 2345 455
abc 345 555
cdf 456 777
fff 555 888
Now my requirement is, Say if, i want to select only those records prior to the record fff 555 888...
how do i go about doing this in unix....
The fff would be hardcoded as it wud be fixed and everytime when i... (7 Replies)
i have a directory which consist of multiple files out of which there are some files that has -e in their name.
I want to write a script that will change all those file-name to -l
example there are some files with name :
file1-e.wav
file2-e.wav
file3-english-e.wav
file-4-e.wav
... (3 Replies)
There are 4 files inside one folder matching criteria i.e. File name = ABCJmdmfbsjopXXXXXXX_mm-dd-yyyy_XXX.data
Here is the Code which find the files matching criteria:-
TS=`date +"%m-%d-%Y"`| for fname in `find . -name "ABCJmdmfbsjop???????_${TS}*.data"`
do # Matching File Processing Code.... (1 Reply)
Hi All
I have a requirement like below.I have always 12 files got generated in my directory called /xx/out/
abc_2014_10_121.xml
abc_2014_09_345.xml
abc_2014_08_432.xml
abc_2014_07_123.xml
abc_2014_06_098.xml
abc_2014_05_569.xml
abc_2014_04_430.xml
abc_2014_03_235.xml
abc_2014_02_056.xml... (9 Replies)
Hi,
I am trying to merge two csv files based on matching criteria:
File description is as below :
Key_File :
000|اق|Key_HF|اق|Key_FName
001|اق|Key_11|اق|Sort_Key22|اق|Key_31
002|اق|Key_12|اق|Sort_Key23|اق|Key_32
003|اق|Key_13|اق|Sort_Key24|اق|Key_33
050|اق|Key_15|اق|Sort_Key25|اق|Key_34... (3 Replies)
Discussion started by: PK29
3 Replies
LEARN ABOUT DEBIAN
dist::zilla::plugin::filefinder::byname
Dist::Zilla::Plugin::FileFinder::ByName(3pm) User Contributed Perl Documentation Dist::Zilla::Plugin::FileFinder::ByName(3pm)NAME
Dist::Zilla::Plugin::FileFinder::ByName - FileFinder matching on pathnames
VERSION
version 4.300020
SYNOPSIS
In your dist.ini:
[FileFinder::ByName / MyFiles]
dir = bin ; look in the bin/ directory
dir = lib ; and the lib/ directory
file = *.pl ; for .pl files
match = .pm$ ; and for .pm files
skip = ignore ; that don't have "ignore" in the path
DESCRIPTION
FileFinder::ByName is a FileFinder that selects files by matching the criteria you specify against the pathname.
There are three types of criteria you can use. "dir" limits the search to a particular directory. "match" is a regular expression that
must match the pathname. "skip" is a regular expression that must not match the pathname.
Each key can be specified multiple times. Multiple occurrences of the same key are ORed together. Different keys are ANDed together.
That means that to be selected, a file must be located in one of the "dir"s, must match one of the "match" regexs, and must not match any
of the "skip" regexs.
Note that "file" and "match" are considered to be the same key. They're just different ways to write a regex that the pathname must match.
Omitting a particular key means that criterion will not apply to the search. Omitting all keys will select every file in your dist.
Note: If you need to OR different types of criteria, then use more than one instance of FileFinder::ByName. A FileFinderUser should allow
you to specify more than one FileFinder to use.
ATTRIBUTES
dir
The file must be located in one of the specified directories (relative to the root directory of the dist).
file
The filename must match one of the specified patterns (which are converted to regexs using Text::Glob and combined with any "match" rules).
match
The pathname must match one of these regular expressions.
skip
The pathname must not match any of these regular expressions.
CREDITS
This plugin was originally contributed by Christopher J. Madsen.
AUTHOR
Ricardo SIGNES <rjbs@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Ricardo SIGNES.
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-06-21 Dist::Zilla::Plugin::FileFinder::ByName(3pm)