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
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...
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...
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...
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
Thanks, olded. It almost works. But seems that uniq didn't work. I prefer only see one "tbf0_drug_ped_txt".
michael
==================================
devced01:/home/capimprv1/dbl/scripts/extract>} ' tst |uniq <
tbf0_thrd_pty_grp_exclsns
tbf0_drug_ped_ptrn...
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...
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...
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...
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.