05-03-2015
Hi Cragun,
Please see answers for questions, which helps provide complete picture:
1. We dont have symbolic links in path, so we can ignore it.
2. I am trying to move regular files with pathnames matching the pattern /Path/AdminUser/*/*/Reports/*.txt to the corresponding pathname after removing AdminUser/ from the source pathname.
3. It can ignore that source pathname.
4. Empty source directories should be in place after files are moved out of them.
5. Yes the entire file hierarchy rooted in /Path in a single filesystem.
To improve performance can any thing like xargs play a major role
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello All.
I am having a directory /tmp/rahul which contains many files in the format
@#home@#rahul@#programs@#script.pl
where /home/rahul/programs is the directory where the script.pl file is to be placed.
I have many files in this format.
What i want is a script which read these... (7 Replies)
Discussion started by: rahulrathod
7 Replies
2. Shell Programming and Scripting
hi experts(novice people can stay away as it is no child's game),
i am developing a script which works like recycle bin of windows.
the problem i am facing is that when ever i am trying to delete a file which is situated in parent directory or parent's parent directory i am unable to... (1 Reply)
Discussion started by: yahoo!
1 Replies
3. Shell Programming and Scripting
Hi
I have a shell script A which calls another 10 shell scripts which run in background. How do i make the parent script wait for the child scripts complete, or in other words, i must be able to do a grep of parent script to find out if the child scripts are still running.
My Code:
... (5 Replies)
Discussion started by: albertashish
5 Replies
4. Shell Programming and Scripting
Hi, I'm new here an dlearning a lot from this forum. i didnt find any solution for this in the forum.
I have already checked in folders in subversion named
HTT01,... HTT21.. and have files in each folder like below:
HTT01/HTT01_00000.hex
HTT01/HTT01_00000_fb_result.hex... (2 Replies)
Discussion started by: ravishan21
2 Replies
5. Emergency UNIX and Linux Support
Guys I have a big issue that I need to get fixed ASAP however I can not seem to find a way to do it. We started to use zones with Solaris 10 at work and we moved a zone from a SIT box to a DEV box. Problem is the software we have installed is looking at a /lcl/sit/apps/ path and it needs to look... (5 Replies)
Discussion started by: LRoberts
5 Replies
6. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
a) Some Unix tools are at $HOME/mytools directory. Make these tools accessible for use from any directory.
b)... (2 Replies)
Discussion started by: justOne21
2 Replies
7. Shell Programming and Scripting
Hi everyone
i am very new to linux , working on bash shell.
I am trying to solve the given problem
1. Create a process and then create children using fork
2. Check the Status of the application for successful running.
3. Kill all the process(threads) except parent and first child... (2 Replies)
Discussion started by: vizz_k
2 Replies
8. Shell Programming and Scripting
How to list all Subdirectories and files with its full path in a parent directory? (1 Reply)
Discussion started by: johnveslin
1 Replies
9. UNIX for Advanced & Expert Users
Currently I am using this laborious command
lvdisplay | awk '/LV Path/ {p=$3} /LV Name/ {n=$3} /VG Name/ {v=$3} /Block device/ {d=$3; sub(".*:", "/dev/dm-", d); printf "%s\t%s\t%s\n", p, "/dev/mapper/"v"-"n, d}'
Would like to know if there is any shorter method to get this mapping of... (2 Replies)
Discussion started by: royalibrahim
2 Replies
10. Shell Programming and Scripting
The bash will trim the folder to trim folder. Within each of the folders (there may be more than 1) and the format is always the same, are several .bam and matching .bam.bai files (file structure) and the bashunder that executes and trims the .bam as expected but repeats the.bam.bai extentions... (9 Replies)
Discussion started by: cmccabe
9 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)