Show the number of lines of the file

zhaozj2021-02-16  88

You often need to view the last 3 lines of a file. No class test commands are found in the VI, you can only turn to the end, sweat.

Now use tail -10 alert.log to complete the requirements of the last 10 lines of the Alert.log file, if you want to find ORA00600 Error error, you can implement this:

Tail -10 alert.log | grep ora00600

Once again, I witnessed the use of pipe symbols, huh, huh.

If you are looking at the head 10 lines, it is simpler.

HEAD -10 Alert.log

转载请注明原文地址:https://www.9cbs.com/read-15914.html

New Post(0)