New answers tagged


This is what I use to find out in a log file if the program started successfully. To find the current file size you can use: current_pos=$(stat -c "%s" file) And then you use the output of tail -c +$current_pos file to start searching from remembered position. But then it is possible that when you read the file size (and also when you do the search)...

Top 50 recent answers are included