The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
appending a line to the end of several hundred files
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
appending a line to the end of several hundred files
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
11-17-2008
elbrand
Registered User
Join Date: Apr 2008
Location: Wolfenbuettel/Germany
Posts: 12
appending a line to the end of several hundred files
find /tmp -name publish.php | while read a ; do echo "<? include('path/to/file.php'); ?>" >> ${a} ; done
elbrand
View Public Profile
Find all posts by elbrand
Find elbrand's past nominations received
Find elbrand's present nominations given