10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How to check the day name,is it saturday in bash shell script.
If dayname = saturday then
run the full load
run just the incremental loads
Thank you very much for the helpful information. (4 Replies)
Discussion started by: cplusplus1
2. Shell Programming and Scripting
Dears does anybody know how to check the file size on server A and server B before and after scp using KSH. Script should be on server A.
I will be using it for the below mentioned scenario:
I have written a code to fetch files from server A, move it onto server B compress it and save it on... (2 Replies)
Discussion started by: BrownBob
3. UNIX for Dummies Questions & Answers
Hi Team ,
Is there a way I can check to see if the same file say , test.dat exists multiple times in the directory path ?
Megha (5 Replies)
Discussion started by: megha2525
4. UNIX for Dummies Questions & Answers
So I am on server 1, and I want to grab the newest file from a particular directory on server 2, and place this in a directory on server 1.
I am trying to use: ls -tr | tail -1
This works, and gets me the newest file in a particular directory. Using svn `ls -tr | tail -1` etc I... (1 Reply)
Discussion started by: Lexx87
5. Shell Programming and Scripting
I have a file with extension xml. So i need to search for this file and sftp.
This script has to run from 8.00am to 8.00pm and during this when ever a file with *.xml exists in a particular directory , it has to sftp that file.
How can i make script check for this file through out the... (2 Replies)
Discussion started by: krishna_gnv
6. Shell Programming and Scripting
I would like to write a script that checks if a file ('counter') was modified the previous day, if so erase its contents and write 00000000 into it.
For e.g. if the file 'counter' was last modified at 11.30pm on 24th May and the script runs at 12.15am of 25th May, it should erase it's... (1 Reply)
Discussion started by: hegdepras
7. Shell Programming and Scripting
The tag can occur multiple times.
I want to remove entire <SeqNum>..</SeqNum> from each line, regardless the values with in this tag. for each line value inside these tags could be different. So please suggest how to do this.
Note: Each profile information is in one line.
... (2 Replies)
Discussion started by: Anusha_Reddy
8. Shell Programming and Scripting
I am new to this forum,and it has been really a great pleasure to be a part of this forum:)
well,i m trying to write a shell script where i m transfering a set of files from other server to my own server.
for this i m using scp... (1 Reply)
Discussion started by: prasson_ibm
9. Shell Programming and Scripting
Please forgive this I think rather basic question.
I have been away from UNIX for a very long time and am in need of some help.
I need to be able to check for the existance of a specific file name say 'file.dat' in a particular location
If the file exists then run a second process (at... (2 Replies)
Discussion started by: JohnCrump
10. Shell Programming and Scripting
We have data files that are ftp'd every morning to a SUN server. The file names are exactly the same except for that each has the date included in its name. I have to write script to do 2 things:
STEP 1) Verify that the file arrived in morning.
STEP 2) Compare the file size of the current... (3 Replies)
Discussion started by: rbknisely