10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I would like to compress the files in multiple directories. For some reason, it only compress the first directory (/Sanbox/logs1) but not the rest of the other directories ("/Sanbox/logs2" "/Sanbox/logs3" "/Sanbox/logs4" ). Any help would be appreciated. Here's my code:
#!/bin/bash... (1 Reply)
Discussion started by: Loc
1 Replies
2. Shell Programming and Scripting
Hi All,
Everyday we will receive 33 files in our source directory(/prd/pk) with the current date. Once our jobs are completed all the 33 files immediately will be moved to backup folder (/prd/pk/backup).
Now, I need to check between source file directory (/prd/pdk) and backup file directory... (3 Replies)
Discussion started by: suresh_target
3 Replies
3. Shell Programming and Scripting
I'm trying to zip multiple files from within certain directories which are named out.
find . -name "*_out -print | xargs zip *
I get this error :
A file or directory in the path name does not exist
how do I get this to work from within my KSH script? (2 Replies)
Discussion started by: Bperl1967
2 Replies
4. 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
5. 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
6. UNIX for Dummies Questions & Answers
We have a test and training directory. The test is a copy of training. We need to change the ownership and group for a list of specific files from the training directory. Is there a way to feed the CHOWN command the list of files we need changed? We are performing the CHOWN as root. Thanks in... (4 Replies)
Discussion started by: Teganii
4 Replies
7. Shell Programming and Scripting
I am working on a Korn shell script that will cd into multiple directories that are listed in a flat file and gzip the contents of each directory.
So far, this is what I have:
1) Find the 4 largest directories and place them into the file foo
du -sk /some/directory/* | sort -rn | head -4... (0 Replies)
Discussion started by: sunsysadm2003
0 Replies
8. Shell Programming and Scripting
Hi,
I need to download multiple files in multiple directores from other Unix server. The files could have been created by differnet user. I can use root account but I want the preserve the owner and time of the remote file. Need help on how I can do this using FTP.
Thanks,
Amit (2 Replies)
Discussion started by: amit1209
2 Replies
9. UNIX for Dummies Questions & Answers
I want to search for a file pattern in more than one directory. How I need to do that?
Here is the scenario:
I am having a directory structure like the following:
/log
...../20051001
..........ftp_server_20051001.log
..........ftp_down_server.log
..........ftp_up_server.log... (7 Replies)
Discussion started by: ravikirankethe
7 Replies
10. Shell Programming and Scripting
The script below is written to ftp files to different directories on the destination server, but I'm not sure whether I have written the code correctly or not.
Can anyone help me on this?
#!/bin/sh
FILE_NAMES="FileA
FileB
FileC"
SERVER=xxxx
USERID=abcd
PASSWD=xxxxx... (12 Replies)
Discussion started by: abrd600
12 Replies