[Techtalk] command line
Finne Boonen
fboonen at vub.ac.be
Sat Mar 20 15:05:03 EST 2004
if somebody can help me out in getting it done for all files:
(pseudocode)
for i in *.php
do
cat newheader i.php > i2
mv i2 i.php
end
Finne
On Fri, 19
Mar 2004, wolf wrote:
> Hi,
>
> Is there anyway from the command line to inject the same line of text
> into about 20 files
> in a directory? I have a php include file I would like to appear on the
> top of every .php
> file in a directory and I thought there might be a quick and easy way
> to paste it into each
> file via the command line as opposed to opening each file and pasting
> onto the top.
>
> _______________________________________________
> Techtalk mailing list
> Techtalk at linuxchix.org
> http://mailman.linuxchix.org/mailman/listinfo/techtalk
>
***********************************************************************************************
normally reserved for signatures
currently lacking one
More information about the Techtalk
mailing list