Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: kl1ngac1k
2,172
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...
774
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
774
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...
774
Posted By vgersh99
how about: awk '/^Starting.*Completed$/ &&...
how about:

awk '/^Starting.*Completed$/ && /ORA- error/' RS= ORS='\n\n' myFile
791
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

 

Featured Tech Videos

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