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 bkrike 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: michael3
  • Content: Threads
  • Order by date
  1. michael3

    Java Runtime Environment problem

    Hi, I am changing my PATH (on NT4) for Java from JDK1.2.2 to JBuilder's JDK1.4, and get such error: Registry key 'HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Runtime Environment' has value '1.4', but '1.2' is required. What should I do? Thanks Michael
  2. michael3

    Trying to find out all the text files in a given directory

    Hi, I need to find out ONLY all the text files (*.[hc], and scripts) in a given directory (which may have a lot of sub-, sub-sub-, ...), using Perl. Following is my sample code, but it gave me all kind of files (*.o, *.a). Instead of -d, is there any other options I can use just for text file...
  3. michael3

    How to search and replace '\274' in vi?

    Hi, There is a special character '\274' in my text file, how can I find and replace it in vi editor or use sed? In vi editor, this character is shown as '\274', a single character. When I use 'hd' to read the file, '\274' is 0xbc. But when I use 'cat' to read this file, '\274' shows as an...
  4. michael3

    How can I do 2 substitutions in ONE cmdline with sed?

    Hi, Can anyone tell me if I could be able to run two substitutions in one sed command line. Say, $sed 's/the/THE/g' input > output $sed 's/1/2/g' output > input Do sed allow me to do the above ( 2 commands ) in a single one? Many Thanks, David
  5. michael3

    extract a specific expresion from a file

    Hi, I am trying to extract all combined words starting with tbf0_ ( for example, tbf0_thrd_pty_grp_exclsns)from a file as following. CETP_GExRpt:77:# tbf0_thrd_pty_grp_exclsns CETP_GExRpt:100:FROM tbf0_thrd_pty_grp_exclsns CETP_PatEdUpd:166: DELETE from tbf0_drug_ped_ptrn...
  6. michael3

    How can I get & parse the content of the first line?

    Hi, I've messed up my file names on NT when tar'd them from Solaris. I packed them on NT, then I unpacked the tar file back on Solaris, all the files are lower-cased. I have writen each of my file name at the begening of the file, take an example for vincrement.java, as you can see, it should...
  7. michael3

    Form submitssion/cancelling problem

    Hi, I have a html page which accepts two inputs (number) from user, and calls a Javascript function doSubmit(form) to check if the input is valid. If not, pop up a alert window, and cancell the form submission. Then, after the user re-input, it should submit the form. But my program does not do...
  8. michael3

    how to pass the return value of a cmd to a var?

    Hi Everyone, I got a problem when I try to pass the return value of a command to a varible, and I've never got the correct value. Please help me out. The ksh shell script looks as: # check if the application ($1 + $2) is running? NUMRUN=$(ps -ef | grep $1 | grep $2 | grep -v grep | wc -l) ###...
  9. michael3

    Convert pl/sql script to PRO*C code

    Hi, I need to commit a table after every 300 rows are deleted. This job was done before by a pl/sql script. Now I want it done by a pro*c application. I'm trying to use cursor-for-loop, but I don't know the syntax for the for-loop. I've seen a lot of for(;;) {....}, but it seems not meet my...

Part and Inventory Search

Back
Top