Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

updated files

Status
Not open for further replies.

vti

Technical User
Feb 26, 2001
189
TR
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.

Thanks for any help.

 
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

HTH ((;-))) Dickie Bird
Honi soit qui mal y pense
 
it works well
thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top