If this is easier than I think I'll kick myself.
I know that I can delete all lines that match a pattern with
sed -e '/<pattern>/d' input > output
But how do I delete the line containing the n'th occurrence of the pattern only.
Thanks
cardy
I'm trying to write a wsadmin (jacl) script that will "interrogate" an application for its installation options prior to uninstalling and then re-installing it with the same options. Any help or pointers would be appreciated.
Cheers
Cardy
Does anyone know of a gui version of the tail command (I've only come across windows versions so far). I would preferably like it to have a highlighting feature and possibly the ability to tail multiple files at the same time.
Anybody know why, when I parse the following -
<foo>fred & amp; barney</foo>
I get barney instead of fred & barney
i.e. the ampersand and the text to it's left are lost. The same happens with " and I suspect will happen with other entity references.
Please note - I had to put a space...
I have a Cobol program that I would like to call from a C program. The linkage section of the Cobol program has some numeric fields defined as :-
FIELD1 PIC S9(9)V99 BINARY.
FIELD2 PIC 9(7) BINARY.
I'm having trouble passing values for these numeric fields into the Cobol program. I have...
I have created a JPanel and set its layout to BoxLayout with components laid out from top to bottom. I then add buttons to the panel but the buttons are centred within the column-shaped panel. How do I get them to "float" to the top ?
TIA
cardy
I'd like to write a (korn) shell script that replaces the mv command so that it doesn't overwrite a file that already exists. I'd like it to function like the mv command so wish to type something like :
move /dir1/*.txt /dir2/
and have all files ending in .txt in dir1 moved to dir2 but only if...
I'm trying to create an Advanced Queue that has a payload type of an object type which has some attributes which are nested tables i.e.
CREATE TYPE TYP_TAB_VARCHAR60 IS TABLE OF VARCHAR2(60)
/
CREATE TYPE TYP_AQ_PAYLOAD AS OBJECT (
ATTR1 TYP_TAB_VARCHAR60 , ...)
/
EXEC...
I've been working my way thru' Steve Muench's excellent Building Oracle XML Apps book and was wondering why the following doesn't work as I think it should. I have an XML file, King.xml :
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="KingToXML.xsl"?>...
How can I capture the Operating System username from an AFTER LOGON ON DATABASE trigger in 8i (8.1.5+)?
I've tried select OSUSER from V$SESSION but it appears not to be populated at the point the trigger is fired.
What methodologies do you DBAs implement for auditing who signs on to the database...
What is the syntax for connecting to an Oracle DB using TNS. The only way I have managed to get it to work so far is by including the full description from the tnsnames.ora file for the database I am trying to connect to in the URL e.g...
How can I use a specific rollback segment on a remote database. I know I can use the SET TRANSACTION USE ROLLBACK SEGMENT... command but that just sets the local rollback segment. What I'm trying to do is delete from tab@remote_db and I've had to create a large rollback segment (all the others...
If you have a user-defined [object] type as a parameter to a procedure is it possible to assign a default value to that parameter of the return value of a "constructor" method for the user-defined [object] type, e.g.
procedure proc1 ( param1 in user_type default...
I've just installed RedHat 7 but I can't get my modem to work. I think it has detected it OK (although I don't know which device it is - how can I find out ?) but the initialisation seems to fail. Running the modem query utility produces no results (all answers are blank). What do I need to do...
I have a requirement to change a string of characters that appears in any of my environment variables to a new string and apply the changes to my current unix session. I have this so far :
env | sed "s/^/export /" | sed "s/old/new"
I now wish to run the output from this...
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.