10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am new to grep and Linux and am looking to see if grep can parse out a list of lines that have a difference of more than 10 seconds between the times on each line.
Example
2016-09-17 19:30:57 INFO: id: 4562079216, time: 2016-09-17 19:30:41,
2016-09-17 12:02:26 INFO: id:... (26 Replies)
Discussion started by: Markham
26 Replies
2. Shell Programming and Scripting
Hi Team,
I have a file with the following patterns:
==> xyz_Server_Started_with_Errors <==
errors.
==> abc_Server_Started_with_Errors <==
errors
==> reds_Server_Started_with_Errors <==
errorss
I want them in this format: (5 Replies)
Discussion started by: ankur328
5 Replies
3. Shell Programming and Scripting
I am searching for an exact match on a value read from another file to lookup an email address in another file. The file being checked is called "contacts" and it has Act #, email address, and contact person.
1693;abc1693@yahoo.comt;Tommy D
6423;abc6423@yahoo.comt;Jim Doran... (2 Replies)
Discussion started by: ziggy6
2 Replies
4. Shell Programming and Scripting
i have a file as below
grepfile.txt
----------------
RNTO command successful
No such file or directory
Authentication failed
if i seach individually for 'RNTO command successful' or 'No such file or directory' using grep -i as below, im gettting result.
grep -i 'No such file or... (5 Replies)
Discussion started by: JSKOBS
5 Replies
5. Shell Programming and Scripting
hi my code is something like
count=0
echo "oracle TABLESPACE NAME nd TARGET"
while
do
count=`expr $count + 1`
(1) tts_space_name$count=`echo $tts | cut -d "," -f$count`
(2) target$count=grep $(tts_space_name$count)... (2 Replies)
Discussion started by: Gl@)!aTor
2 Replies
6. Shell Programming and Scripting
Hi all,
I just want to find all values that are in a specified interval. I tryed it with grep e- file , it does not work.
Is it possible to get values wich are lower a special number, like grep >e-18 file?
Thanks a lot (4 Replies)
Discussion started by: newcommer
4 Replies
7. Shell Programming and Scripting
I am making a script but having little problem. at one part I need to find one number format or other format from a file..
those formats are xxx-xx-xxxx or xxxxxxxxx
i tried
grep '( \{3\}-\{2\}-\{3\} |\{9\})'
if i do them sepratly it work but like this it is not working
Please check... (7 Replies)
Discussion started by: Learnerabc
7 Replies
8. UNIX for Dummies Questions & Answers
I have this output:
uniquemember=uid=315kthatch,ou=people,ou=client315,dc=paisleyhosting,dc=com
and i want the output to be just this:
315kthatch
I need it to be generic tho, because I have hundreds of lines of output, and the preceding numbers are not always 315. So I would need... (3 Replies)
Discussion started by: kthatch
3 Replies
9. Shell Programming and Scripting
Hi,
i have a file called alert_pindb.log i need to grep and count for all the lines starting with "ORA-" but i need to exclude the line which is having "ORA-00600
"
i am using following syntax to count the ORA- nos
"grep \"ORA-\" alert_pindb.log | wc -l";
since ORA- may be anything... (9 Replies)
Discussion started by: prakash.gr
9 Replies
10. UNIX for Dummies Questions & Answers
How come grep testfile1 won't find anything in testfile1 (even though the characters sd are there in great quantity), but grep '' testfile1 will find plenty?
Do the single quotes prevent the shell from interpreting the testfile1 is interpreted as: grep *test whether or not characters sd exist*... (5 Replies)
Discussion started by: doubleminus
5 Replies