Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: cardy
  • Content: Threads
  • Order by date
  1. cardy

    Delete 1 line (only) that matches a pattern using sed

    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
  2. cardy

    Re-install app with same options using wsadmin

    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
  3. cardy

    GUI version of tail command

    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.
  4. cardy

    Truncated text with entity references

    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 &quot; and I suspect will happen with other entity references. Please note - I had to put a space...
  5. cardy

    Enable Control-C interrupt

    Simple question - how do you enable control-c to make it interrupt a program?
  6. cardy

    Calling Cobol from C

    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...
  7. cardy

    Top-align Buttons

    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 &quot;float&quot; to the top ? TIA cardy
  8. cardy

    Shell script command line parameters

    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...
  9. cardy

    Object Type with Nested Table as AQ Payload

    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...
  10. cardy

    Newby question on XSLT

    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=&quot;1.0&quot;?> <?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;KingToXML.xsl&quot;?>...
  11. cardy

    OS Username from Logon Trigger

    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...
  12. cardy

    Problem connecting to an Oracle DB via TNS.

    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...
  13. cardy

    Use specific Rollback Segment on remote database

    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...
  14. cardy

    Default values for object-type parameters

    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 &quot;constructor&quot; method for the user-defined [object] type, e.g. procedure proc1 ( param1 in user_type default...
  15. cardy

    BT Speedway ISDN modem

    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...
  16. cardy

    Environment variables

    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 &quot;s/^/export /&quot; | sed &quot;s/old/new&quot; I now wish to run the output from this...

Part and Inventory Search

Back
Top