Linux Shell Programming

24 Aralık 2009 Perşembe
Find text within a file

grep ntp messages
Finds the occurrences of ntp within messages file.

ls -l | grep mysqld
Lists the properties of mysqld file.


Find file

find . -name "*.log" -print
Finds files with .log postfix