Grep username and get all the lines with thread numbers
I need help to extract the file. If I am entering the user name like abcd@xyz.com, search the username and get the tread number. Once will get thread number all the line having same threadnumber wanted to keep in seperate file. It can be more than thread number for single username.
For example abcd@xyz.com user has thread number 4 and 2 given in red color(it may be more than one thread numbers with same user).So all the lines which matches the username and coressponding thread number wanted to keep in separate file. Sample input and outputfile has given below
Hi,
I want to find out whether a string contains non numbers and + and -
example :
Str="0005000A" - It contains A
Str="0005000+" - No problem
What I have done is ,
echo $Str | grep
I will have to list out all non numeric characters... (6 Replies)
Hello,
I'm trying to grep for digits surrounded by non digits and I'm obviously misinformed. Could someone help me get this sorted out
here is what I have that is not working
grep -ho '\D(\{11\})\D' *.txt (5 Replies)
Hi all,
I am new to unix and struggling to do the below
I have few lines in a xml
<title>abc:1</title>
<description>abc:2</description>
<language>abc:3</language>
Is it possible to extract only the entire word like abc:1 abc:2 abc:3 instead of the entire line into a new file . Kindly... (3 Replies)
hello -
A SystemOut.log file has recurring entries that follow this format:
Principal: auth9.nick.al.gov:389/USERNAME
Over the course of a day thousands of lines similar to this are produced, with each username represented hundreds of times.
I need to create a new file that shows... (4 Replies)
Hi everyone,
Fist of all I must confess that I am pretty new in the Unix environment and especially to shell scripting, however due to work related requirements I have started to analyze software specific logs.
The logs are structured so that it records by sessionID AND/OR Thread number, the... (3 Replies)
I want to parse the lines and want to extract the double quoted numbers as:
"SQL3149N "72" rows were processed from the input file. "0" rows were
successfully inserted into the table. "0" rows were rejected."
and want the output in 3 variables like
a=72
b=0
c=0
thanks in advance
... (3 Replies)
hi
name$count = some dynamic value
now i want to use dat dynamic value in grep so how m i supposed to do dat
i tried
`grep $(name$count) source`
, it is not working ......
what will be after grep so dat i will be... (4 Replies)
I'm trying to grep lines where the digits at the end of each line are greater than digits. Tried this but it will only allow me to specify 2 digits. Any ideas would greatly be appreciated. grep -i '\<\{3,4,5\}\>' file
---------- Post updated at 05:58 PM ---------- Previous update was at 05:41... (1 Reply)
hi,
I have two basic questions, I will be really grateful if I receive any
comment from you,
I have an MPI code where I am trying to implement OpenMP directives.
The machine where I run the code has 16 cores. I run the code with
export OMP_NUM_THREADS=2
mpirun -np 4 ./exec
If I... (0 Replies)