The question is.
I have a file. I search it for a string. I want to delete the line with the string as well as the lines following it until a get to another set string.
Example: I am searching for "Sun". I want to delete the line with "Sun" and everything following it...
thanks fortytwo
it is not quite what I'm looking for.
In ksh, there is a trap command to handle signals
For Example
===========
trap "echo Ctrl-C not supported; exit" 2
means
whenever user press Ctrl-C, this message will display
trap "echo error from program; exit" ERR...
Hi all,
In ksh, there is a "trap" command which can trap returning value from each shell scripts and invoke an error handling routine when return value != 0.
For Example :
trap `error_routine`.....
test1.sh
test2.sh
Is there anything serving the same function in Perl?
so that I...
I have a web page with about 25 links to www and local web links on my server. Is there a way in Perl to check the page links and make sure all of them are okay and give me a warning messages about the ones that are not working??
This is on an NT server.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.