10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi experts,
I am totally stuck with this.
I run a looping "for" command for multiple directories, manually, I have done this :
vfor dir in A B; do
cp -p $dir/X.txt X-${dir}.txt
done
where A and B is directory name.
However, I need to run for many directories.
So I have tried this :... (7 Replies)
Discussion started by: guns
7 Replies
2. Shell Programming and Scripting
Hi,
I have a directory /home/datasets/ which contains a bunch (720) of subdirectories called hour_1/ hour_2/ etc..etc.. in each of these there is a single text file called (hour_1.txt in hour_1/ , hour_2.txt for hour_2/ etc..etc..) and i would like to do some text processing in them.
Each of... (20 Replies)
Discussion started by: amarn
20 Replies
3. Shell Programming and Scripting
Suppose I have 5 different directories in some path .Is it possible to search 5 different directories using find command in one single command line.
I mean something like this:-
find path -type d -name dirname1 dirname2 ..........
pls help (2 Replies)
Discussion started by: maitree
2 Replies
4. Shell Programming and Scripting
I have multiple files that starts as TRADE_LOG spread across multiple folders in the given structure..
./dir1/1/TRADE_LOG*.gz
./dir2/10/TRADE_LOG*.gz
./dir11/12/TRADE_LOG*.gz
./dir12/13/TRADE_LOG*.gz
when I do ftp uisng mput from the "." dir I am getting the below given error
mput... (1 Reply)
Discussion started by: prasperl
1 Replies
5. Shell Programming and Scripting
I have a folder structure like the below
/test/test1/test2/app
/test/test3/app
/test/test4/test5/app
..
I need to create a new folder under "app" in all the above listed directory structure at one shot by the name "subapp" .
How can we acheive this using a script .
New to unix... (4 Replies)
Discussion started by: rajeshnatarajan
4 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I am facing the below problem
I have a list of number to be searched(around 1000) files resideing in multiple directories as i dont know where it resides in. for example
search string is like (abc)123456
please help. very urgent
Thanks a lot
Uma (3 Replies)
Discussion started by: umapearl
3 Replies
7. Shell Programming and Scripting
Hi ,
I 'm trying to check if multiple directories exist on a server, if not create the missing ones and print " creating missing directory.
how to write this in a simple script, I have made my code complex
if ; then
taskStatus="Schema extract directory exists, checking if SQL,Count and... (7 Replies)
Discussion started by: ramky79
7 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I am using ls command as below to get the list of *.edi files from 2 different subdirectories as1 & as2:
/ntekupal/test$ ls ./as1/*.edi ./as2/*.edi
It is giving me list of edi files in these folders as below :
./as1/6df667.edi ./as2/823ssd3.edi
Now my requirement is to just get... (3 Replies)
Discussion started by: ntekupal
3 Replies
9. Shell Programming and Scripting
Hi,
I am using ls command as below to get the list of *.edi files from 2 different subdirectories as1 & as2:
/ntekupal/test$ ls ./as1/*.edi ./as2/*.edi
It is giving me list of edi files in these folders as below :
./as1/6df667.edi ./as2/823ssd3.edi
Now my requirement is to just... (8 Replies)
Discussion started by: ntekupal
8 Replies
10. Shell Programming and Scripting
Hi -
I am new to unix scripts...I need to move several directories on multiple servers to new directories. (0 Replies)
Discussion started by: mackdaddy07
0 Replies