9 More Discussions You Might Find Interesting
1. 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
2. What is on Your Mind?
https://www.unix.com/members/neo-albums-forum-pics-picture523-vi-vim-cheat-sheet.jpg (1 Reply)
Discussion started by: Neo
1 Replies
3. Shell Programming and Scripting
Hi,
I need to search for a exact word in a file and I have a list of allowable values in a list file. I search something like this using egrep -f option:
>egrep -f list.txt data.txt
New
New York
NewYork
>
list.txt file has the allowable value for search and this file can be edited to... (5 Replies)
Discussion started by: calredd
5 Replies
4. UNIX for Dummies Questions & Answers
Where can I get sed and awk cheat sheet ? Need to look for usage of special charaters and meta charaters (1 Reply)
Discussion started by: pitagi
1 Replies
5. 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
6. 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
7. 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
8. UNIX for Dummies Questions & Answers
I have a file called alert.log containing the following:
WARNING: received KRVX_OPER_CANNOT_SUPPORT
knlldmm: gdbnm=CROOP
knlldmm: objn=23793
knlldmm: objv=1
knlldmm: scn=5189816456
knllgobjinfo: MISSING Streams multi-version data dictionary!!!
knlldmm: gdbnm=FDROP
knlldmm: objn=49385... (9 Replies)
Discussion started by: akDBA
9 Replies
9. Shell Programming and Scripting
How can i make something like
if (echo "$arg2" | egrep -s '^+\.+km/h+$|^+km/h+$'); then
not to output the value of $arg2 on the screen, evertime i get match it outputs the value of the variable on the screen which i don't need to do. I know for grep its -q option but it doesn't work for egrep.... (2 Replies)
Discussion started by: Vozx
2 Replies