Hi
is it possible to edit a file and when that file get update from someone else ,at same time show the last updated line to screen.?I can do it with "tail -1 -f file_name" but i want to edit 5-6 files at same time.
If I've understood you correctly, you want to tail several files ( as tail -1 filena* isn't permitted) in one go.
So, you put the command in a loop
e.g.
for filen in file_patterns*
tail -1 $filen
done
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.