10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello folks,
I am having an issue with searching for a pattern using egrep (or grep).
For ex, in the below file. I am searching for all files with a particular pattern but I am not able to figure out what the issue is?
$ cat test.dat
TEST_211815.TXT
TEST_111915.TXT
TEST_112015.TXT... (2 Replies)
Discussion started by: calredd
2 Replies
2. Shell Programming and Scripting
Hi
I am trying to run CMD that combining EGREP and PERL in multiple files
cat *07:00.22-12-13.txt | egrep" NAME| perl -ne 'print if /^sid9/ .. /^!/' "
I need the see the NAME and the text from sid9 to !
how can I use the EGERP in parallel to the PERL ?
This is one file
Qqq... (2 Replies)
Discussion started by: sharong
2 Replies
3. Shell Programming and Scripting
I have a text file which has the content starting with "....."
Not able to filter out lines staring with "....."
Is there anything wrong with grep stagement ??
.....processing table 2 of 2
.....migration process started at 2012-10-04 05:00:28
.....estimated # of rows 169,830... (2 Replies)
Discussion started by: Nagaraja Akkiva
2 Replies
4. Shell Programming and Scripting
What does the below statement mean?
1. egrep -m 1 -cif "ignore_list" "file"
2. egrep -vif "ignore_list" "file"
Thanks in Advance
Robin. (1 Reply)
Discussion started by: robinbannis
1 Replies
5. UNIX for Dummies Questions & Answers
HI,
I have two files filea, fileeb
filea
z283110z67
xx65686377
xx654681zz
xx652836xx
xx653881zz
xx65480z11
xx654z5466
xx65510000
xx65670000
xx656z0000
xx656z1822
fileb (3 Replies)
Discussion started by: krao
3 Replies
6. UNIX for Dummies Questions & Answers
Hi Guys,
we have a shell script which basically query the Database which retrieves huge data and use the data with "egrep" .
Now there is some data which contains characters like "abc)" and the same is used like below :
"egrep (.+\|GDPRAB16\|GDPR/11702 96 abc)\|$ temp.txt"
now while... (7 Replies)
Discussion started by: sagarjani
7 Replies
7. Shell Programming and Scripting
Hi there,
Im having some issues using egrep, I have a text file containing server logs:
the user imputs 2 arguments, which are error checked and made into $searchMonth $searchYear respectivley.
I then do the grep command:
egrep /$searchMonth/ $file | egrep /$searchYear: | wc -l
... (1 Reply)
Discussion started by: Darklight
1 Replies
8. Shell Programming and Scripting
Hi,
I don't understand what is the correct way of writing:
egrep -l '{$min,$max} $pattern' $filename
I tryed to search on google how to wtrite {$min, $max}, but I don't have success (7 Replies)
Discussion started by: DNAx86
7 Replies
9. UNIX for Dummies Questions & Answers
Hi I've been searching google and have not found what egrep -c means. Does anyone know where I can get a cheat sheet or what that -c means?
thanks,
Linda (2 Replies)
Discussion started by: leelm
2 Replies
10. UNIX for Dummies Questions & Answers
Hi,
i am using egrep -f. The file with the expressions is very big and if i make the file a lot smaller, it works fine. Only if i use the original file, witch has about 20.000 lines it doesn't seem to work. Is the file to big, or do i need more patience??
my command is:
egrep -f... (2 Replies)
Discussion started by: tine
2 Replies