Search Results

Search: Posts Made By: ooilinlove
3,890
Posted By ooilinlove
Grep multi line with keyword ?
Hello Everyone,
i need to grep specific keyword in a file.
i want need solution to output.
example


file.txt

03-08-2019 21:02:20,938 [Docker][SendAWZService]::: Recieve Data From Amazon...
5,379
Posted By ooilinlove
........
........
5,379
Posted By ooilinlove
Not work on sunos bash-3.2$ date --date='30...
Not work on sunos
bash-3.2$ date --date='30 minutes ago' '+%b %_d %H:%M'
date: illegal option -- date=30 minutes ago
usage: date [-u] mmddHHMM[[cc]yy][.SS]
date [-u] [+format]
...
5,379
Posted By ooilinlove
Grep last 2 minutes log only
I have newbie,
which i use for checking last one hours log file,
but i want to check 2 minutes log and discard old log, only match current time with last 2 minutes.


Ex log.
2018-07-03...
1,229
Posted By ooilinlove
It'work. Thank All.
It'work.

Thank All.
1,229
Posted By ooilinlove
i try use awk + if |awk -F"." '{if( $2 !=...
i try use awk + if

|awk -F"." '{if( $2 != "Q1[0-9][0-9][0-9]" ) print $2}' |sort |uniq -c |sort -k1nr |head -n6


can help me.
1,229
Posted By ooilinlove
syntax error at source line 1 context is ...
syntax error at source line 1
context is
{if( ! $var >>> =~ <<<


my os = sunos
1,229
Posted By ooilinlove
Help for "if condition" - need your help
Hi Friends
Need you help on this.
i used below line in my script

#! /bin/bash
read var
if [ "$var" != "0" ] || [ "$var" != "Q1000" ]
then
echo "YES"
else
echo "NO"
fi

i want...
1,014
Posted By ooilinlove
How to for awk print divide value more than 10000?
I have a text file with data in the following format.

042240.Thor!Loki: Asgard>Seus>/usr/Valhalla/Niflheim/Asgardianos/Seus.ec@266:Service Success => Diff time: 25689 msec, Energy loss = 212, Subr...
5,702
Posted By ooilinlove
How to switch user in shell scripting (without root)?
Hi everyone:

I need create a script that must switch user and then must execute
certain commands, sadly neither my user nor the second user have no privileges
for su - ,

I've tried...
1,466
Posted By ooilinlove
How to grep for a word and display last transection?
Hi,

When we "grep" for a word in a file, it returns the last lines containing the word that we searched for.
Is there a way to display last line to grep.

Thanks


Ex log.



Ex....
1,676
Posted By ooilinlove
How to replace the 10th column?
how to replace the 10th colum? Each line begins similarly, but they all ends variously.


Col1,Col2,Col3,Col4,Col5,Col6,Col7,Col8,Col9,Col10,Col11,Col12,Col13,Col14,Col15,Col16,Col17
2015/03/14...
2,597
Posted By ooilinlove
To check time stamp in log file and calculate.
Hi Friends,

I have the following logfile.
i want to make a script for calculate time by time2 - time1

1600266278|random|1|2014-09-19 02:08:56.024|2014-09-19...
3,122
Posted By ooilinlove
latest.log points to new file latest.log ->...
latest.log points to new file

latest.log -> /usr/home/TF/log/CybertonTransaction.20130710-03.log
after crontab run
latest.log -> /usr/home/TF/log/CybertonTransaction.20130710-04.log
3,122
Posted By ooilinlove
it's not work. after contrab run. can't tail...
it's not work.
after contrab run. can't tail new file automantic.:(
3,122
Posted By ooilinlove
i try shell script. but not work. ...
i try shell script. but not work.
nowdate=$(date '+%Y%m%d-%H.log')
fileName=`ls -tl /usr/home/TF/log/CybertonTransaction.$nowdate |head -1 |nawk -F" " '{print $9}'`
echo $fileName
tail -f...
3,122
Posted By ooilinlove
How to tail -f logfile. if log file is generate every 1 HR.?
Hello,

How to tail -f logfile. if log file is gennerate every 1 HR.
I want it works automatically all the time. never changes it by manual.
Thank

ls -trl CybertonTransaction.*
-rw-r--r-- 1...
798
Posted By ooilinlove
How to Print between ?
Hi All.

I want print log file.
I try : cat filename |nawk -F" " '{print $2,$3}' but notwork.
Please Help me..
...
2,200
Posted By ooilinlove
it work. Thank you very much.
it work.
Thank you very much.
2,200
Posted By ooilinlove
Count & Result
Hi All.

I'm trying to count with command cat Count.log |sort -t 1 | uniq -c

Input File.

Back-end Invalid Id Password
Back-end Invalid Id Password
Success
Success
Success
Back-end ...
1,685
Posted By ooilinlove
in not work. ---------- Post updated at...
in not work.

---------- Post updated at 11:33 AM ---------- Previous update was at 11:32 AM ----------



in not work
usage: tail [+/-[n][lbc][f]] [file]
tail [+/-[n][l][r|f]] [file]
1,685
Posted By ooilinlove
How to tail -f multi logfile in 1 shell script.?
Hello,

How to tail -f multi logfile from multi path in 1 shell script.

File & Path

/usr/home/localmode/mode110l/log/logic/number110/digit110_digit110m4_2013050210.txt...
8,458
Posted By ooilinlove
Monitoring Tomcat Service with shell script
Hello Forum,

I have prepared script to monitor the tomcat status.
Following is the script which will monitor tomcat instance.
I need little modifcation in the script.

My script will grep...
14,497
Posted By ooilinlove
I'm use crontab. #!/bin/ksh ...
I'm use crontab.

#!/bin/ksh
#===============================================================================

#########################################
# Main Program ...
14,497
Posted By ooilinlove
Check log file size every 10 minute. Alert if log not update
How to check log size every 10min. by script (can use crontab)
if log size not change with alert "Log not update"

Base run on SunOS 5.8 Generic_Virtual sun4u sparc SUNW,SPARC-Enterprise

...
Showing results 1 to 25 of 84

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