10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i am confusing in grep Vs egrep vs grep -E.could any body explains very clearly? (3 Replies)
Discussion started by: vmachava
2. Shell Programming and Scripting
The $ seems to fail for me. I'm using GNU grep 2.5.4 (that is, nothing out of the ordinary, just what came with my distro) but I can't get the final anchor $ to work for me. (^ works as usual.)
Behavior without anchor:
$ /bin/grep -E 'tium' file
$... (2 Replies)
Discussion started by: CRGreathouse
3. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I have a text file.
1) How do I search for x and y?
'Find all lines that contain David and Emily'
2) How do I... (1 Reply)
Discussion started by: ninjagod123
4. UNIX for Dummies Questions & Answers
i have an xml file & need to extract two specific tags
<loginName> & <lastLogin> for the users.
In certain cases if a user has never logged in , the corresponding <lastLogin> tag for a
<loginName> tag is absent. Can somebody help me out / guide me on how to go about it. (2 Replies)
Discussion started by: crux123
5. Shell Programming and Scripting
So a few months ago, I decided to move away from using grep and decided to use egrep in this code that i'm writing.
i figured egrep is more robust than grep.
well, it appears it isn't.
when i used egrep to search the log file for a script that looked like the following, egrep couldn't find... (3 Replies)
Discussion started by: SkySmart
6. Shell Programming and Scripting
I have a problem with grep/fgrep/egrep. Basically I am building a 200 times 200 correlation matrix. The entries of this matrix need to be retrieved from another very large matrix (~100G). I tried to use the grep/fgrep/egrep to locate each entry and put them into one file. It looks very... (1 Reply)
Discussion started by: realwindfly
7. UNIX Desktop Questions & Answers
Can anyone please explain me the difference between grep, egrep and fgrep with examples.
I am new to unix environment.. Your help is highly appreciated.
ravi (2 Replies)
Discussion started by: ravind27
8. Shell Programming and Scripting
I use arp to get the mac-addresses of my hosts.
# arp -a | grep 192.168.0.
e1000g0 192.168.0.1 255.255.255.255 o 00:00:00:00:00:01
e1000g0 192.168.0.11 255.255.255.255 o 00:00:00:00:00:02
e1000g0 192.168.0.2 255.255.255.255 ... (12 Replies)
Discussion started by: domi55
9. Shell Programming and Scripting
I'm new at unix bash scripting, im playing a little bit with egrep/grep.
I have serveral files and i do a search on those files, like "aki", the result
is many rows outcoming and serveral of them are dubble because aki wil come more than ones in a file, how can i get a result that it... (3 Replies)
Discussion started by: tvrman
10. UNIX for Dummies Questions & Answers
The input file "notifications" contains the following string.
FRTP has 149 missing batches
I want to search for :
FRTP has missing batches
As the number 149 is not important and will change.
The commands I have tried.
grep "FRTP has.*missing batches" notifications.txt... (3 Replies)
Discussion started by: whugo