using echo 'text' > file (to add to last line of several documents)
der.hans
PLUGd at LuftHans.com
Wed Oct 20 23:25:36 MST 2010
Am 20. Oct, 2010 schwätzte mike hoy so:
> is it possible to simply add text to the bottom of multiple files or even
> one?
Append (>>) rather than truncate (>).
> for example let's say I want to add to the bottom of several files:
>
> <?php include("../includes/footer.php"); ?> to the bottom of 1.php
>
> echo '<?php include("../includes/footer.php"); ?>' > 1.php
echo '<?php include("../includes/footer.php"); ?>' >> 1.php
ciao,
der.hans
--
# http://www.LuftHans.com/ http://www.LuftHans.com/Classes/
# Passwords are like underwear. You don't share them, you don't hang them on
# your monitor, or under your keyboard, you don't email them, or put them on
# a web site, and you must change them very often. -- Unknown
More information about the PLUG-discuss
mailing list