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
2. Shell Programming and Scripting
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. Shell Programming and Scripting
I have the following file structure and I want to rename all the abc.jar files to abc_backup.jar
rock@server:~/rakesh> ls -R
test1 test2 test3
abc.jar (2 Replies)
Discussion started by: rakeshkumar
4. Shell Programming and Scripting
I am in urgent need of your suggestions.
I have below two users in my system:
xyz:x:101:101:XYZ System Account:/export/home/xyz:/bin/bash
abc:x:2009:10:ftp user only:/export/home/abc:/bin/false
Where "xyz" is the crucial one and "abc" is only introduced for FTPing the... (2 Replies)
Discussion started by: sugarcane
5. Shell Programming and Scripting
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
6. Shell Programming and Scripting
I have multiple files that starts as TRADE_LOG spread across multiple folders in the given structure..
when I do ftp uisng mput from the "." dir I am getting the below given error
mput... (1 Reply)
Discussion started by: prasperl
7. UNIX for Advanced & Expert Users
i am trying to ftp files from one server to another.
how do i do it with all directories.(i mean i need the same directory structure)
mget -r * doesnt seem to work properly..pls help. (5 Replies)
Discussion started by: dnat
8. 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
9. UNIX for Dummies Questions & Answers
I have a report file that is generated every day by a scheduled process.
Each day the file is written to a directory named .../blah_blah/Y07/MM-DD-YY/reportmmddyy.tab
I want to copy all of this reports to a separate directory without having to do it one by one.
However, if I try
cp... (3 Replies)
Discussion started by: ken2834
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?
PASSWD=xxxxx... (12 Replies)
Discussion started by: abrd600