insert file?

inode0 inode0 at gmail.com
Wed Nov 28 17:23:02 UTC 2007


On Nov 28, 2007 9:26 AM, adrian kok <adriankok2000 at yahoo.com.hk> wrote:
> Hi
>
> Please help how insert `who` in the third line of the
> file
>
> "head -n 3 file" << `who`

$ ed -s foo <<EOF
> 3r !who
> wq
> EOF
$

John




More information about the users mailing list