10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Lets say I have a massive directory which is filled with other directories all filled with different c++ scripts and I want a listing of all the scripts that contain the string: "this string". Is there a way to use a grep search for that? I tried:
grep -lr "this string" *
but I do not... (3 Replies)
Discussion started by: Circuits
2. UNIX for Beginners Questions & Answers
I have this fileA
TEST FILE ABC
this file contains ABC;
TEST FILE DGHT this file contains DGHT;
TEST FILE 123
this file contains ABC,
this file contains DEF,
this file contains XYZ,
this file contains KLM
I want to have a fileZ that has only (begin search pattern for will be... (2 Replies)
Discussion started by: vbabz
3. Shell Programming and Scripting
I have a huge log file close to 3GB in size.
My task is to generate some reporting based on # of times something is being logged.
I need to find the number of time StringA , StringB , StringC is being called separately.
What I am doing right now is:
grep "StringA" server.log | wc -l... (4 Replies)
Discussion started by: Junaid Subhani
4. Shell Programming and Scripting
I'm using aix flavour unix where im trying for the below kind of pattern to search in all the files in a directory.
I tried with different possible combinations like
grep -ir "out.*\transaction_ctry_code" * etc....
Pattern I'm trying for :
Here i... (0 Replies)
Discussion started by: rmkganesh
5. Shell Programming and Scripting
i got files delimited by |^ character. eg.
i need to find if the above file contains | (pipe ) character inside the data.eg.
above file contains | character in the dog data. how can i search that. (4 Replies)
Discussion started by: krk
6. Shell Programming and Scripting
I am in new in unix,can any one tell how to grep the data by limit.
suppose I have below data:-
requirement is how to grep the data which is having count greater than 1000 msecs only.
thanks in adnavce. (2 Replies)
Discussion started by: abhigrkist
7. Shell Programming and Scripting
Pretty sure this is very simple hence im banging my head o the wall as to why i cant get this to work:
Im greping against many files where there will be the following string:
Date: Thu, Aug 23 2001 09:27 PM
(of course values such as date ,time and PM/AM will vary.)
Im trying to grep... (1 Reply)
Discussion started by: duonut
8. Shell Programming and Scripting
i have a file like
<banana>yellow color and it is<\banana>
i want to search for a word in a file data between the tags
i mean searching should be done in redcolcor, yellow color and it is (2 Replies)
Discussion started by: pvr_satya
9. UNIX for Dummies Questions & Answers
I want to grep one file for a search string and get the next 10 lines after the search string.
for eg,in file tnsnames.ora,i have 100 entries.i want to search for one string and get the entry for that db.
please help how to acheive this using awk or sed?
Thanks. (11 Replies)
Discussion started by: raga
10. Shell Programming and Scripting
how to search whole line using grep in a file. (1 Reply)
Discussion started by: useless79