Thanks for the quick help J. Problem solved.

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alvin Delagon
Sent: Monday, August 06, 2007 2:05 PM
To: Philippine Linux Users' Group (PLUG) Technical Discussion List
Subject: Re: [plug] Text file manipulation in command line

 

"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]
<mailto:[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]  <mailto:[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