[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: insert file?



On Nov 28, 2007 9:26 AM, adrian kok <adriankok2000 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]