linux count lines in file every fixed time code example Example: find how many lines in a file linux wc -l <filename>