Search Results

Search: Posts Made By: kl1ngac1k
3,551
Posted By Scrutinizer
I don't know why it does not do that since it is...
I don't know why it does not do that since it is all free format, possibly because it is not able to determine what part is the date and what constitutes time.

It does seem to work with a space...
1,642
Posted By vgersh99
awk '/ORA- error/{print "### ORA found in log: "...
awk '/ORA- error/{print "### ORA found in log: " FILENAME, $0 }' RS= ORS='\n\n' myFile
1,642
Posted By Don Cragun
If you're only processing completed log files,...
If you're only processing completed log files, vgersh99's suggestion can be simplified a little bit:
awk '/ORA- error/' RS= ORS='\n\n' myFile
If you are processing active log files and you want to...
1,642
Posted By vgersh99
how about: awk '/^Starting.*Completed$/ &&...
how about:

awk '/^Starting.*Completed$/ && /ORA- error/' RS= ORS='\n\n' myFile
1,240
Posted By Scrutinizer
Try something like: select f in $(ls -p | grep...
Try something like:
select f in $(ls -p | grep -v /)
do
cat "$f"
done

This would only work if the are no files with spaces or newlines in the directory which may be OK from the command...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 01:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy