9 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello Folks ,
I am a new bie to the world of unix , what i am planning to do is the I have the location in server to which i am access through the putty and the location is /mt/ttlog/avccomn/logs/201901/19 and at this location the files are listed as show
startjmsnode1.sh_03.out... (7 Replies)
Discussion started by: punpun26262626
7 Replies
2. Shell Programming and Scripting
Hi,
cat log
EPC-SubsId: 3333
EPC-GrIds: RTGHUPA:1:15-11-2013T19:59,22-11-2013T19:59
EPC-GrIds: PrimaXGB_23:10
EPC-SubsId: 4444
EPC-GrIds: RTGHUPB:1:15-11-2013T19:59,22-11-2013T19:59
EPC-SubId: 5555
EPC-GrIds: RTGHUPC:1:15-11-2013T19:59,22-11-2013T19:59
EPC-SubsId: 6666... (1 Reply)
Discussion started by: justbow
1 Replies
3. Shell Programming and Scripting
Hi folks,
I have logs folder in which different type of logs are generated , I am monitoring them by the below command
tail -f *.log
but I want that if exception come in any of the logs then it should be catch so what i should prefix with tail -f *.log so that it imeediatley catches and... (3 Replies)
Discussion started by: punpun66
3 Replies
4. Shell Programming and Scripting
Hi Folks,
please advise , I have logs generated on unix machine at location /ops/opt/aaa/bvg.log , now sometimes there come exception in these logs also, so I want to write such a script such that it should continuously monitor these logs and whenever any exception comes that is it try to find... (3 Replies)
Discussion started by: tuntun27272727
3 Replies
5. Shell Programming and Scripting
Hi! I'm trying to assign line numbers to each line of the file
for example consider the following..
The contents of the input file are
hello how are you?
I'm fine.
How about you?
I'm trying to get the following output..
1 hello how are you?
2 I'm fine.
3 How about you? ... (8 Replies)
Discussion started by: abk07
8 Replies
6. Shell Programming and Scripting
Hello friends,
Im trying to separate a number from a log, but it seems i need help here
awk '/stimated/ {print $5}' mylog.txt
gives (1515.45MB).
i need pure number part to use in a comparision loop so i want to separate the number part (but only 1515 not 1515.45 )
awk '/stimated/... (6 Replies)
Discussion started by: EAGL€
6 Replies
7. Shell Programming and Scripting
Hi,
I have a script which generates a log file on demand by redirecting the output to a log file. But the requirement is :
echo A
echo B
echo C
should print A B C
not like
A
B
C
and this has to be handled in script only..not in the shell level (while running the script only) .... (5 Replies)
Discussion started by: bhaskar_m
5 Replies
8. Programming
The below code throws error in the line number 32 where the function is defined.
But How to find the line where the function is called.
That is I want to throw the error at the line number 43 (as here the function is called).
The code is:
#include <iostream>
#include <string>... (9 Replies)
Discussion started by: SamRoj
9 Replies
9. UNIX for Advanced & Expert Users
Hi i would like to add line numbers to end of each line in a file.
I am able to do it in the front of each line using sed, but not able to add at the end of the file.
Can anyone suggest
The following code adds line number to start of each line
sed = filename | sed 'N;s/\n/\t/'
how can i... (5 Replies)
Discussion started by: rudoraj
5 Replies