Posts

Showing posts from February 24, 2019

Can I attach a variable to a tail command?

Image
5 Is this possible, if not, is there a better I can do it? Example: Number of log entries: 3 log=$(home/admin17/folder/data_log) read -p "Number of log entries" num cat $log | tail -n $num shell-script share | improve this question edited yesterday terdon ♦ 128k 31 252 427 asked yesterday User101 58 4 add a comment