Search Results

Search: Posts Made By: mohanalakshmi
912
Posted By mohanalakshmi
Combine logs span across multiple lines
Hi All,
I am having a log file

ERROR 2016-12-08 10:22:23.542 some data
**** some data******
**** some data******
**** some data******
DEBUG 2016-12-08 10:23:23.542 some data
**** some...
1,524
Posted By mohanalakshmi
Fetch the values based on a Key using awk from single file
Hi,
Please help to fetch the values for a key from below data format in linux.

Sample Input Data Format

11055005|PurchaseCondition|GiftQuantity|1...
1,341
Posted By mohanalakshmi
I have used bcc command along with my mail -s...
I have used bcc command along with my mail -s command and mail was successfully sent.
after that i have checked in these location /var/spool/mail and var/log/ for finding my bcc copy mail.but i...
1,341
Posted By mohanalakshmi
Need to Take Sent Mail Backup in Linux Sever
Everyday my code will send 100's* of mails from linux server to outlook using*sendmail command .
I need to take a backup of those mails which are exactly sent from my linux server.
This is needed...
2,272
Posted By mohanalakshmi
Get the week's day
Hi All,
I have the below requirement ,
if i give the week number for ex 41 i need to get the date for Monday and thursday for this given week. my expected output is 13/10/2014 (Monday's date) and...
10,668
Posted By mohanalakshmi
Sending csv file as an attachement from Linux
Hi i am trying to send a csv file as an attachment via mail from linux.
i am using the below script.
echo "X-Mailer: htmlmail" $VERSION
echo "Mime-Version: 1.0"
echo 'Content-Type:...
2,330
Posted By mohanalakshmi
HI i have a doubt on the below command, ...
HI i have a doubt on the below command,
TZ=CST7CDT date '+%Y-%b-%d %T'
This gives the time which is 1 hr before time from the current time.
May i know how to get the time which is past 15 mins ....
2,330
Posted By mohanalakshmi
Hi All, Don thanks for your valuable inputs....
Hi All,

Don thanks for your valuable inputs.

I am having the same requirement like mentioned in this thread.i.e to take the lines which are modified within 5 hrs.
Only thing is the timestamp...
2,330
Posted By mohanalakshmi
Hi Don Cragun , Thanks much for your...
Hi Don Cragun ,

Thanks much for your responses.:)
Here is the details
uname -a 's output


Linux SMP Mon Jul 1 17:58:32 EDT 2013 64 GNU/Linux


date command gives the below output.
...
2,330
Posted By mohanalakshmi
Hi , Thanks much for your response.:)this is...
Hi ,

Thanks much for your response.:)this is the sample data which i have ,


2014-May-06 23:17:35 347;WARN ;RMI TCP Connection(13147)
2014-May-06 23:17:35 347;WARN ;RMI TCP...
2,330
Posted By mohanalakshmi
Hi All, Thanks for your replies :) I...
Hi All,

Thanks for your replies :)

I used Don Cragun's reply and i am just getting the below output
Start date=2014-May-06, Start time=22:15:30, End date=2014-May-07

not the lines from the...
2,330
Posted By mohanalakshmi
Get the line from the log file
Hi All,

My requirement is to get the lines from the logfile which should updated in the last two hrs from the current time.
2014-May-05 03:24:07 525;WARN ;error in line 1
at (Unknown Source)...
2,804
Posted By mohanalakshmi
Run multiple commands in ssh
Hi All,

I have the below requirement.
I want to copy the local file to remote after that i need to run the local script on a remote machine.When i use two ssh commnds i can achieve this. But i...
1,481
Posted By mohanalakshmi
Hi all, i wrote the below code to get the...
Hi all,
i wrote the below code to get the mismatch between two files.
but i want the output even the data's are fliped,
i.e
file a has
11|0|2009-09-20|9999-12-31|100|0|||...
1,481
Posted By mohanalakshmi
Thanks for the reply and its working perfectly as...
Thanks for the reply and its working perfectly as expected.
Thanks again.:b:Could you please explain how the code works.
1,481
Posted By mohanalakshmi
field 1 is the desired output under the below...
field 1 is the desired output under the below conditions
data of field 1 from file 1 and file 2 should be same.i.e two lines from file 1 for field 1 and 2 lines from file 2 should be same. (...
1,481
Posted By mohanalakshmi
Hi thanks for the quick reply. when i used the...
Hi thanks for the quick reply.
when i used the code it just print all the lines i.e all the field 1.
one thing i missed out in the previous post is both the files may not be in a same order like...
1,481
Posted By mohanalakshmi
File comparison using awk
Hi All,

i have two files file1 ,file 2
file 1


col1|col2|col3|col4|col5|col6|col7|col8
11346925|0|2009-09-20|9999-12-31|100|0
11346925|0|2009-09-20|9999-12-31|120|0...
888
Posted By mohanalakshmi
Script lock functionality
Hi All,

My requirement is i have a script A.sh .When a person A runs the script A.sh it should get locked and person B should not run the script.
i followed the below code

f_script_lock()
{...
4,067
Posted By mohanalakshmi
awk command to insert a tag in XML
Hi All,

I need a help on inserting a XML tag.
Actual input

<var>
<nam>abcd</nam>
<a1>.</a1>
</var>

if tag <a1>.</a1> is getting missed in XML like below

<var>
<nam>abcd</nam>...
3,675
Posted By mohanalakshmi
Relational operator
Hi guys ,


if a=12345678 i need to check that "a"
less than 8 char
greater than 8 char
equal to 8 char
contain only numeric.
I done the above with seperate if condition to check and ...
2,989
Posted By mohanalakshmi
Date difference in Sun OS 5.10
Hi,

I need to find the difference between 2 dates in SunOS 5.10
input will be in(yyyymmdd)

date1: 20131011
date2:20131012

my output shold be diff between two dates i.e 0,1,2,3 date2 is...
2,418
Posted By mohanalakshmi
hi thank u, i am not sure about the second...
hi thank u,
i am not sure about the second thing which i gave i.e to display,
but i need to write as ***** if i enter the password into file
2,418
Posted By mohanalakshmi
Password hiding in UNIX
Hi guys,

I use STTY command to make the password invisible.

Now I need to write the password into another file pwd.txt, but in an invisible manner, something like ******. Another thing is to...
1,562
Posted By mohanalakshmi
hi thank u its working fine:o
hi thank u its working fine:o
Showing results 1 to 25 of 56

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