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 strongm 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
  • 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

    GUI version of tail command

    In what way does this solution qualify as a "GUI version"?
  3. 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
  4. cardy

    Sorting file except 1st line

    A variation on aigles solution (without the output_file): head -1 input_file; tail +2 input_file | sort -u or put this in a script (called, say, nsort) head -1 $1; tail +2 $1 | sort -u then run nsort input_file
  5. 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.
  6. 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...
  7. cardy

    Enable Control-C interrupt

    On a system where control-C works - $ stty -a speed 9600 baud; rows = 34; columns = 132; ypixels = 446; xpixels = 811; eucw 1:0:0:0, scrw 1:0:0:0 intr = ^c; quit = ^\; erase = ^h; kill = ^u; eof = ^d; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^q; stop = ^s; susp = ^z; dsusp = ^y...
  8. cardy

    Enable Control-C interrupt

    sushveer, I tried this but it is still not working. No matter what character I use, it won't interrupt my process. I just get the control character displayed e.g. ^C. Other control characters seem to work, e.g. ^Z to suspend the process. Any other ideas? Cheers Cardy
  9. cardy

    Enable Control-C interrupt

    Simple question - how do you enable control-c to make it interrupt a program?
  10. 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...
  11. 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
  12. cardy

    Shell script command line parameters

    Thanks Greg, we seem to be getting somewhere. I'll use this idea for now but if someone can come up with a way of doing it like mv does it (i.e. specifiying the destination as the second parameter) I'd be very grateful. I'm trying to replace the mv command for the users (who are constantly...
  13. cardy

    Shell script command line parameters

    Thanks crowe but have you actually tried running this. Yes it works OK if you say mv file1 file2 This moves file1 to file2 only if file2 does not exist, but what if you say mv x* sub i.e. move all files beginning with x to the directory sub. As I said above when you specify wildcards for the...
  14. cardy

    Shell script command line parameters

    Thanks for that DumTech but you haven't quite grasped my problem. Let me try to explain. I want to be able to type move a b where a is either one file (in which case b can be a file or a directory) or a number of files using wildcards e.g. *.txt (in which case b must be a directory). In my...
  15. cardy

    Shell script command line parameters

    Thanks Greg but the problem with mv -i is it requires a response. I'd just like to have any files that couldn't be moved (because the destination file already exists) reported on and skipped, without any user intervention.
  16. 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...
  17. 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...
  18. 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;?>...
  19. cardy

    OS Username from Logon Trigger

    This is exactly what I had in my trigger but as I said earlier, the osuser column does not appear to be populated at the point the trigger is fired. This is what I have :- CREATE OR REPLACE TRIGGER logonauditing AFTER LOGON ON database DECLARE machinename VARCHAR2(64); osuserid...
  20. 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...

Part and Inventory Search

Back
Top