"Also, how can I determine the line number of the last occurrence of some
string?"

# grep -n <search-string> <file>

On 8/6/07, Noli Rafallo <[EMAIL PROTECTED]> wrote:
>
>  Hi. I've already tried google but most samples are for vi. Can someone
> please point me to some url that discuss how to insert line of text on an
> existing text file? Also, how can I determine the line number of the last
> occurrence of some string?
>
>
>
> Thanks
>
>
>
>
>
> _________________________________________________
> Philippine Linux Users' Group (PLUG) Mailing List
> [email protected] (#PLUG @ irc.free.net.ph)
> Read the Guidelines: http://linux.org.ph/lists
> Searchable Archives: http://archives.free.net.ph
>
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to