Any inaccuracies in this index may be explained by the fact that it has been sorted with the help of a computer.
I am doing a startup!
Cross-browser testing from your browser!
I have written my fourth book!
Be faster than Larry Wall in the shell!
You're viewing a comment by nanker and its responses.
hey I loved your SED oneliners and I can make much better use of SED having read them. I am running into a few things I would like to do with file manipulation I can find a solution for with sed and have been thinking Perl might be what I need.
In specific, I want to search a file for a particular string and the line number on which it occurs... say line 5...
read in the line number, add 1 (or any number I like) and enter that number as the value for the (HTML) font tags...
I guess I should first ask if there is indeed a way in SED this can be easily accomplished? if not how could I do this in perl?
I am not a programmer, I get done what I need to and very little more, so the more plain the answer the better for.
currently when I run into these kinds of things I just end up fixing them manually, but I know there are better ways. I am thinking I should just dive in and spend the time to learn enough perl work from the command line in place of SED. Is that a reasonable progression do you think, if I am editting files almost daily with little tasks like this?
thanks for the help and any advice
(why do I need your e-mail?)
It would be nice if you left your e-mail address. Sometimes I want to send a private message, or just thank for the great comment. Having your e-mail really helps.
I will never ever spam you.
(Your twitter handle, if you have one.)
* use <pre>...</pre> to insert a plain code snippet.
* use <pre lang="lang">...</pre> to insert a syntax highlighted code snippet.
For example, <pre lang="python">...</pre> will insert Python highlighted code.
* use <code>...</code> to highlight a variable or a single shell command.
* use <a href="url" nospam>title</a> to insert links.
<a href="url" nospam>title</a>
* use other HTML tags, such as, <b>, <i>, <blockquote>, <sup>, <sub> for text formatting.
Type the word "computer_150": (just to make sure you're a human)
Please preview the comment before submitting to make sure it's OK.
Peter Krumins' blog about programming, hacking, software reuse, software ideas, computer security, browserling, google and technology.
Reach me at:
Or meet me on:
Subscribe through an RSS feed:
Subscribe through email:
Enter your email address:
Delivered by FeedBurner
See all top articles
See all downloads
See more detailed list of recent articles
See more detailed category information
See more detailed list of all articles