for starter


 
Thread Tools Search this Thread
Operating Systems AIX for starter
# 1  
Old 12-12-2008
Tools for starter

I have a problem
I got about 50 log files with some information, the info is not important. I would like to search only for specific info from the logs. I did find it. But i cannot see from where it comes
can you help me
I have used :
cat *.log | grep "??????", but the log file too.
Thanks for help ( sorry for the bad english )
# 2  
Old 12-12-2008
Code:
awk '/\?\?\?\?\?\?/ {print NR":   "$0}' infile

Will give out the line number and the line. Take it as alternative to Jim's suggestion - I would prefer grep with that option too.

Edit: Changed it after I read Jim's answer since I saw I didn't get what you want Smilie

Last edited by zaxxon; 12-12-2008 at 05:24 AM..
# 3  
Old 12-12-2008
Code:
grep -l '??????' *.log


Last edited by jim mcnamara; 12-12-2008 at 05:32 AM..
# 4  
Old 12-12-2008
I have tried
cat *.log | grep "?????" do find *.log grep "?????"
and it's working, but thanks i figured it out from your advise
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Solaris

Solaris Starter

hi everyone, Can anyone guide me with: How to start with the solaris, as i m new to this. (any material or any link or any start up book) Plz do needful as soon as possible.. Thanks. Hitesh T. (2 Replies)
Discussion started by: hi2_t
2 Replies

2. Shell Programming and Scripting

Linux starter help needed

:confused: hi guys i'm helping out as a lab assistant and have been told to use a linux shell script to gather assignments from the students in the class I'm helping out in. They've been told to have their assignment in a certain folder in their accounts and I'm to gather them, only problem is I... (0 Replies)
Discussion started by: jaybee
0 Replies

3. What is on Your Mind?

UNIX starter role?

This may not be the right forum to put up a question like the one I'm about to ask. I am hoping that I would get very fruitful responses. i) I have been learning UNIX for sometime now, but my question is realistically what do I need to be able to be able to apply for UNIX jobs. What sort of... (6 Replies)
Discussion started by: B_Jay
6 Replies

4. Solaris

Solaris Starter

I have got Sun Fire V120 for testing( just trying to install Solaris 10 on it). Just need to know how shall I get display on my normal monitor as I cannot see any compatible port?? Regards, (1 Reply)
Discussion started by: zaibee
1 Replies
Login or Register to Ask a Question