10 More Discussions You Might Find Interesting
1. 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
1 Replies
2. 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
2 Replies
3. 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
3 Replies
4. Shell Programming and Scripting
All,
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
1 Replies
5. Shell Programming and Scripting
Dear Friends,
I have a command which can result following output.
Packet is: /var/adm/yyyy/pkt6043
Intended for network : /vob/repo
I would like to retrive
pkt6043 and /vob/repo using single command.
Blue color test will be always contstant and red color text will be dynamic
... (2 Replies)
Discussion started by: baluchen
2 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
Please i need to know the difference between grep, egrep & grep -i when used to serach through a file.
My platform is SunOS 5.9 & i'm using the korn shell.
Regards,
- divroro12 - (2 Replies)
Discussion started by: divroro12
2 Replies
7. UNIX Desktop Questions & Answers
Hi All,
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.
Regards,
ravi (2 Replies)
Discussion started by: ravind27
2 Replies
8. Shell Programming and Scripting
Hi
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
12 Replies
9. Shell Programming and Scripting
hi ,
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
3 Replies
10. UNIX for Dummies Questions & Answers
Hi,
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
3 Replies