Reputation: 23453
I would like to append a line of text all text files (*.log) in a directory, reason being, i would like to insert a "marker" text in application logs to insert breakpoints.
Thanks.
Upvotes: 1
Views: 242
Reputation: 54592
One way using a 'for' loop:
for i in *.log; do echo "MARKER" >> "$i"; done
Upvotes: 3