Search Results

Search: Posts Made By: Deena1984
4,971
Posted By Deena1984
yes, im using Linux 2.6.32-431.29.2.el6.x86_64 ...
yes, im using Linux 2.6.32-431.29.2.el6.x86_64
trying to get this in bash script.

tried so many commands,echo $(($(($(date -d "20150511" "+%s") - $(date -d "20150411" "+%s"))) / 86400))
this...
4,971
Posted By Deena1984
Date between 2 dates
Hi All,
Can you help me in finding the business dates (Mon-Fri) between two date ranges.. (forget abt holidays in weekdays)

searched and tried a lot but cant figure this. ISs there any special...
8,952
Posted By Deena1984
Hi Rudic, Can you help me to perform this...
Hi Rudic,

Can you help me to perform this in a soft link (not the file or directory)


ls -lrt $TMP
lrwxrwxrwx 1 * * 16 Apr 20 07:55 /home/deena/tmp -> /app/deena/tmp




find $TMP...
8,952
Posted By Deena1984
Yes Rudic, it worked with -x another...
Yes Rudic, it worked with -x

another problem with this is it was not able to find the files recursively in directories.

For Eg, as per the below command

find $DIR -mtime +7 -type f -exec...
8,952
Posted By Deena1984
Passing Variable in -mtime command
Hi,
As the process of log cleanup, Im using the below command


find $DIR -mtime +3 -type f -exec gzip {} \;


The problem is I want to pass +3 as variable in my unix shell.
I have defined...
3,140
Posted By Deena1984
Many Thanks RudiC. the logic you suggested helped...
Many Thanks RudiC. the logic you suggested helped me..
3,140
Posted By Deena1984
im using bash, RudiC below are some of the...
im using bash, RudiC
below are some of the files along with wordcounts

715 Notes.csv
441 Report.csv
232 Client.csv
273 Log.csv
2455 Indications.csv
869 Note.csv
...
3,140
Posted By Deena1984
Thanks for the reply Rudic, Yes, I have...
Thanks for the reply Rudic,

Yes, I have directed the o/p to log file. but in that log file,it simply writes all the wordcounts and row counts . doesn't do any matching comparison


Srccnt :...
3,140
Posted By Deena1984
Comparing wc outputs using array
Hi All,

Im trying to compare the wc -l output with another set of rowcount outputs which returned from sql...

For Eg : Im storing the first outputs as below
<srccnt=`wc -l $HOME/*.csv | awk...
1,850
Posted By Deena1984
Can you please help me with this
Can you please help me with this
5,372
Posted By Deena1984
Thanks Rudic. Can you help also assist me...
Thanks Rudic.

Can you help also assist me for a date function.

I mean the the above 4 scripts should run today's business date (Mon-Friday).
If any one the script fails for today for eg,...
5,372
Posted By Deena1984
Is there a way to define any output redirection...
Is there a way to define any output redirection at starting of my file. instead using LOG_FILE 2>&1 everytime.

somthing like below in script.
exec > LOG_FILE 2>&1

I want all the outputs and...
2,436
Posted By Deena1984
I have done this with split command. Thanks
I have done this with split command. Thanks
1,850
Posted By Deena1984
Running Multiple Scripts for different business date
Hi Team,

I have the below 4 scripts which I will be running in sequential order.
This run will start for today's business date.

If all the 4 scripts are success for today that means script...
5,372
Posted By Deena1984
Thanks Rudic. The last one did the help
Thanks Rudic.

The last one did the help
5,372
Posted By Deena1984
Many thanks for the suggestion. I will keep the...
Many thanks for the suggestion. I will keep the script looks simple so it will easy to understand for anyone.

However, in your statement below

#
echo "Here is script1" >> log.file
script1...
5,372
Posted By Deena1984
Execute Multiple Scripts and Capture Log Details
Hi All,

I have a requirement to execute multiple scripts (say 4) one after the other in one script and capture log details and error messages in a log file below

LOG_FILE= FILE.`date...
2,670
Posted By Deena1984
Redirecting grep output to multiple files
Hi All,

I am trying to redirect the grep output to multiple files, can you please help with that.

Below is the command im using to match my pattern

grep \<proxyType\>$PxyType...
2,436
Posted By Deena1984
Hi, Im trying this in Linuk OS BASH shell...
Hi,

Im trying this in Linuk OS
BASH shell
DIR and myfile is defined in my script

DIR="/opt/cdhsit/daas/message-ingestion/messge"
echo "Enter a file name:"
read myfile

user input is...
2,436
Posted By Deena1984
Thanks for the reply. each original file...
Thanks for the reply.

each original file has more than 10000 lines.

Sample Input for PxyType

<proxyType>CommodityCapFloor</proxyType>
<proxyType>CommodityCapFloor</proxyType>...
2,436
Posted By Deena1984
Split files based on user input
Hi All,

I have a UNIX script which reads "PxyType" (read PxyType) as input from user and a file (eg : "File.json") with the list all PxyType's.

Based on the user input for "PxyType" in...
Showing results 1 to 21 of 21

 
All times are GMT -4. The time now is 03:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy