10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Very good wishes to all!
Please help to provide the shell script for generating the record counts in filed wise from the .csv file
My question:
Source file:
Field1 Field2 Field3
abc 12f sLm
1234 hjd 12d
Hyd 34
Chn
My target file should generate the .csv file with the... (14 Replies)
Discussion started by: Kirands
14 Replies
2. Shell Programming and Scripting
// Redhat
I am running a cron with cp every 15 minutes.
cp /p2/arch/log/* /p2/bkp
What I need is to not to copy the file again if the filename already exists under /p2/bkp
The reason is that the file size under /p2/arch/log/ will be reduced (contents truncated), so I need to keep the... (10 Replies)
Discussion started by: Daniel Gate
10 Replies
3. Shell Programming and Scripting
hi All, Any one answer my requirement.
I have source location
src_dir="/home/oracle/arun/IRMS-CM"
My Target location
dest_dir="/home/oracle/arun/LiveLink/IRMS-CM/$dc/$pc/$ct"
my source text files check with below example.text file content
$fn "\t" $dc "\t" $pc "\t" ... (3 Replies)
Discussion started by: sravanreddy
3 Replies
4. Shell Programming and Scripting
Hi Friends,
I wrote one shell script to check the record count in two files and that will send us the notification activity if found zero record count.
What i did is I created for loop and checking the count for both of the files but what is happening is for first file has data then it's... (13 Replies)
Discussion started by: victory
13 Replies
5. Shell Programming and Scripting
Hi,
My requirement is,there is a directory location like:
:camp/current/
In this location there can be different flat files that are generated in a single day with same header and the data will be different, differentiated by timestamp, so i need to verify how many files are generated... (10 Replies)
Discussion started by: srikanth_sagi
10 Replies
6. Shell Programming and Scripting
I am having a zipped file which has the following URL contents -
98.70.217.222 - - "GET /liveupdate-aka.symantec.com/1340071490jtun_nav2k8enn09m25.m25?h=abcdefgh HTTP/1.1" 200 159229484 "-" "hBU1OhDsPXknMepDBJNScBj4BQcmUz5TwAAAAA" "-"
In this line here is we only need to consider the... (4 Replies)
Discussion started by: Naks_Sh10
4 Replies
7. Shell Programming and Scripting
reference data
GHTAS
QER
CC
N
input data
NNWQERPROEGHTASTTTGHTASNCC
Desired output
GHTAS 2
QER 1
CC 1
N 3 (2 Replies)
Discussion started by: perl_beginner
2 Replies
8. UNIX for Dummies Questions & Answers
Hi,
Please let me know how to find out number of files in a directory excluding existing files..The existing file format will be unknown..each time..
Thanks (3 Replies)
Discussion started by: ammu
3 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I need one line command to display all files that ends with .scr.
Example: In a directory I have 10 files, out of that 4 files have filetype extension .dat and 4 files with .scr and 2 files with .txt.... In this i want to display only files that ends with .scr.
I tried some commands,... (2 Replies)
Discussion started by: gwgreen1
2 Replies
10. Shell Programming and Scripting
Hi
My source database is seibel and the target is oracle. I need to check the count for source query and target query. if it is equal then i need to send and success mail to an email id. If it is not equal need to send an failure mail to an email id.
pl let me know about the script in ksh.
... (2 Replies)
Discussion started by: ksmbabu
2 Replies