thanks for the help!
Am 20. Oct, 2010 schwätzte mike hoy so:
for i in *.php; do echo 'text' >>$i; doneone last thing:
echo 'text' >> 1.php 2.php 3.php
or
echo 'text' >> *.php
You could also do a sed inline script to grab them all, but for i in is
simple enough syntax for me.Well, the "echo 'text' >>1.php" is already a bash script :)
would be nice, but don't work any input on that? or am I to write a bash
script?
ciao,
der.hans# "The Constitution is not an instrument for the government to restrain the
On Wed, Oct 20, 2010 at 11:24 PM, mike hoy <mhoy06@gmail.com> wrote:
ah nice, thanks
On Wed, Oct 20, 2010 at 11:25 PM, der.hans <PLUGd@lufthans.com> wrote:
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
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
--
Mike Hoy
--
# http://www.LuftHans.com/ http://www.LuftHans.com/Classes/
# people, it is an instrument for the people to restrain the government -
# lest it come to dominate our lives and interests." --Patrick Henry
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss