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: *

  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

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

    Thanks, Elenat - M.
  3. michael3

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

    Thnaks a lot, jaa. M.
  4. 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...
  5. michael3

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

    Cakiwi, I use DYNIX/ptx 4.0 V4.4.7 i386. Thanks, M.
  6. michael3

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

    Thanks, Cakiwi. It works perfectly well. M
  7. michael3

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

    Thanks, ALL. I have tried all solutions you provided, but unable to get the result. Cakiwi, my sys doesn't like awk, instead I used gawk, but got a syntax err. Following are the screen print: /home/ops/oper/DBL/dly> gawk '{gsub(/\274/,"ZZZ")}' tmp >outfile /home/ops/oper/DBL/dly> ls...
  8. michael3

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

    ...is generated by "hold alt- key, and type 171". On screen, it shows as ½. Then save it into oracle, ... /home/ops/oper/DBL/dly> hd *.out |grep bc 00000450 44 20 31 bc 20 41 4e 44 20 32 bc 2e 01 32 30 30 D 1. AND 2...200 00000a40 01 54 41 4b 45 20 32 bc 01 32 30 30 32 31 30 32...
  9. 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
  10. michael3

    extract a specific expresion from a file

    Thank you all. They work great now. have a good one michael
  11. michael3

    extract a specific expresion from a file

    Thanks, olded. It almost works. But seems that uniq didn't work. I prefer only see one &quot;tbf0_drug_ped_txt&quot;. michael ================================== devced01:/home/capimprv1/dbl/scripts/extract>} ' tst |uniq < tbf0_thrd_pty_grp_exclsns tbf0_drug_ped_ptrn...
  12. michael3

    extract a specific expresion from a file

    Thank you all for help. But I still can't get it work for me. ========================================================== Tryed vlad's 1st solution (since don't have tolower()), but get the syntax error as: devced01:/home/capimprv1/dbl/scripts/extract>cat ext #---------------- getPattern.awk...
  13. michael3

    extract a specific expresion from a file

    Thanks, lancer73. But that won't work. Actually my input file is the output of: %grep -in tbf0_ *, so every line contains tbf0_xxxxxx at any place of the line. I want only the tbf0_xxxxx, not the whole line; and if have multi tbf0_xxxxx, I only want see one appear in my output, and do not care...
  14. 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...
  15. michael3

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

    Thanks, Hardy. I got it. michael
  16. michael3

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

    yes. I need the qw() to take a commandline argument (dir_name), so that the perl script can run from anywhere instead of only current directory. michael
  17. michael3

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

    ...or die; $line = <INFILE>; # Read first line chomp($line); # Remove CR, CR/LF close(INFILE); $line =~ s/\/\*//g; # Remove comments $line =~ s/\*\///g; # Remove comments $line =~ s/\s+//g; # Remove whitespaces print &quot;Renaming...
  18. michael3

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

    ...of my file name at the begening of the file, take an example for vincrement.java, as you can see, it should be named as VIncrement.java, instead: /* VIncrement.java */ package com.dot.ext.math; import com.dot.lex.objects.*; import com.dot.project.*; import com.dot.lex.engine.*; import...
  19. michael3

    Form submitssion/cancelling problem

    Thanks, Roblasch, for your response. I used my doSubmit() as <FORM name=&quot;myform&quot; method=&quot;post&quot; action=&quot;/webapp/ToolBox/servlet/walgreens.show fill.proxy.ShowfillProxy/ShowfillReport&quot; onSubmit=&quot;return doSubmit(myform)&quot;> and then put it in <input...

Part and Inventory Search

Back
Top