Location of log file


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Location of log file
# 1  
Old 04-21-2009
Location of log file

This below one find the table name in the log.I want location of log file.Please any help

> find / -type f -name "*.log" -exec grep -i 'sct' {} 2>/dev/null \;
. . importing table "sct"
. . exporting table sct
. . importing table "sct"
. . exporting table sct


Thanks ,
MR
# 2  
Old 04-22-2009
Add a "-l" to the grep to see at least what the filename is. Check man grep on your system if you have an option to print the full path maybe.
Also some greps have -R do search recursively so you could spare the find.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to find a existing file location and directory location in Solaris box?

Hi This is my third past and very impressed with previous post replies Hoping the same for below query How to find a existing file location and directory location in solaris box (1 Reply)
Discussion started by: buzzme
1 Replies

2. UNIX for Dummies Questions & Answers

avahi , change the log location

avahi error message goes to /var/log/messages , how can put avahi to log the error in a file /var/log/avahi-error instead of /var/log/messages (1 Reply)
Discussion started by: prpkrk
1 Replies

3. Shell Programming and Scripting

How to copy a file from one location to another location?

I have file file1.txt in location 'loc1'. Now i want a copy of this file in location 'loc2' with a new file called test.txt. Please help me how to do this in shell script. (1 Reply)
Discussion started by: vel4ever
1 Replies

4. Shell Programming and Scripting

File created in a different location instead of desired location on using crontab

Hi, I am logging to a linux server through a user "user1" in /home directory. There is a script in a directory in 'root' for which all permissions are available including the directory. This script when executed creates a file in the directory. When the script is added to crontab, on... (1 Reply)
Discussion started by: archana.n
1 Replies

5. AIX

Log Location

Hi, I would like to find out where the system will display the server was shutdown due to power fluctuation. I have check the command errpt and alog -o -t boot |more but not getting the requred information. alog -o -t boot command is not showing the time Time: 9 LEDS: 0x538 invoking... (4 Replies)
Discussion started by: manoj.solaris
4 Replies

6. Virtualization and Cloud Computing

HPVM log file location and a sample

1. Can somebody tell me the log file location of HPVM where all the events of guest OS are reported ? 2. And if possible a log file with important events in it ? (1 Reply)
Discussion started by: thegeek
1 Replies

7. Shell Programming and Scripting

Put one string from one location to another location in a file

Hi Everyone, I have 1.txt here a b c' funny"yes"; d e The finally output is: here a b c d e' funny"yes"; (1 Reply)
Discussion started by: jimmy_y
1 Replies

8. AIX

Location of smit.log

What is the location of smit.log (3 Replies)
Discussion started by: AIXlearner
3 Replies

9. Gentoo

Location log after process crontab

Hi... I want to know directori location and file name (log) after crontab has been running.. (linux disto gentoo and sun solaris) Because for long time maybe contain this log file becomes large. Thanks for your help. regards, srilinux (4 Replies)
Discussion started by: srilinux
4 Replies

10. HP-UX

Open view log location

Can someone tell me where the path to store the error message in HP OpenView? thk a lot (0 Replies)
Discussion started by: zp523444
0 Replies
Login or Register to Ask a Question