You should place this script in parent(first level directory) and could run from there. Also for double checking the working for script, you could use following to make sure first files are getting picked from all the paths.
Once you are fine with above script you could use following actual script then.
Where file named Input_file has all the paths. You should place this script too in parent(first level directory) and could run from there.
Thanks,
R. Singh
This User Gave Thanks to RavinderSingh13 For This Post:
Is this possible? Let me know If I need specify further on what I am trying to do- I just want to spare you the boring details of my personal file management.
Thanks in advance-
Brian- (2 Replies)
Hi,
I want to run a Perl script on multiple files, with same name ("Data.txt") but in different directories (eg : 2010_06_09_A/Data.txt, 2010_06_09_B/Data.txt).
I know how to run this perl script on files in the same directory like:
for $i in *.txt
do
perl myscript.pl $i > $i.new... (8 Replies)
Hi friends,
Hello again :)
i got stuck in problem. Is there any way to get a special directory from directory tree?
Here is my problm.." Suppose i have one fix directory structure "/abc/xyz/pqr/"(this will be fix).Under this directory structure i have some other directory and... (6 Replies)
I want to use tree to display the directory tree. It is easy to use
tree -d -L 2
However I would like to run it on specific list of directories. Can such a thing be performed?
Example:
/media/academic-repo/chrisd/literature
tree -d prose -L 2
prose
├── computer-technology... (1 Reply)
I have had some issues with a data drive and have copied all of the data to a new drive. The size used is not the same on both drives with a 3GB difference (less on the new drive). There are millions of files on the data drive, so it is not an easy task to determine if there are some files missing... (17 Replies)
Hi all,
I'm trying at the moment to write a shell script to build a directory tree and create files within the built directories. I've scoured through sites and text books and I just can't figure out how to go about it.
I would assume that I need to use loops of some sort, but I can't seem... (8 Replies)
Hi
I have 100 files under file A labled 1.txt 2.txt.....100.txt(made up name)
I have 1 files under file B labled name.txt
How can i run the same perl script on 100 files and file name.txt
I want to run
perl script.pl A/1.txt B/name.txt
perl script.pl A/2.txt B/name.txt
.......
perl... (3 Replies)
bash on RHEL 5.9
i have directory with several subdirectories within it. I want to find the ACL for all the directories and subdirectories within it.
i need to run getfacl on all directories and subdirectories (not regular files ) in a loop.
How do I do this ? Or , is there another... (1 Reply)
Hi,
I am trying to bring down the application gracefully before bringing down AIX OS/LPAR using RC directories.
Issue: Application script is not working properly during/before AIX OS/LPAR shutdown. looks like "rc.d" directories doesn't recognize Kill script.
But Startup script (using... (0 Replies)