Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
Use a little shell script like this.....it takes input from standard in
and expects a filename as an argument. It just masks the nastiness of
creating a temp file by doing it automagically.
#!/bin/sh
TMP=`tempfile`
while read line; do
echo $line >> $TMP
done
cat $1 >> $TMP
mv $TMP $1
--matt
On Tue, 2004-03-02 at 22:27, Brent Deterding wrote:
> I want to add some text to the top of a file - how do I do it?
>
> Like >> but at the beginning, not the end
>
> -- Brent
> _______________________________________________
> members mailing list
> EMAIL:PROTECTED
> http://mlug.missouri.edu/mailman/listinfo/members
>
>
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members