Re: question: text substitution using Perl

2006-10-23 Thread Zhao Peng
any single character except a newline. Thank you for your time. Zhao Kevin D. Clark wrote: Zhao Peng writes: substitution 1 The characteristic of original string: 1, always start with $ 2, then followed by an integer, could be more than 1 digit, such as 23 3, always end

Re: question: text substitution using Perl

2006-10-23 Thread Zhao Peng
Mike and Kevin, Thank you both for quick, detailed, and crystal clarification and explanation. Just one more question: To the shell, anything inside of single quotes is a single argument, so all of the spaces, newlines, etc. in there are passed without shell interpretation (quoted from the

question: text substitution using Perl

2006-10-20 Thread Zhao Peng
Hi, Being a slow Perl learner who hasn't make much progress, I'm wondering if some kind souls could help me achieve the following 2 text substitution tasks detailed below. substitution 1 The characteristic of original string: 1, always start with $ 2, then followed by an

file size estimation

2006-09-15 Thread Zhao Peng
Hi, Suppose a EBCDIC file on a tape from IBM mainframe is read onto a Linux server, and this EBCDIC file on the tape has 100 records with a length of 13054, is it correct to estimate the size of the file on Linux server would be 1,305,400 bytes? Is block size information also needed to

free notebook memory (256 MB)

2006-05-18 Thread Zhao Peng
Hi, I'm giving it away for free since I upgraded to 1 GB version, and don't have a spare slot for it . 200-Pin SO-DIMM notebook memory: Capacity is 256 MB, speed is DDR 266 (PC 2100) Drop me a line if anyone wants it. (I live in Norwich and work in Hanover) Thanks, Zhao

[FIXED]: remove linux, and then install Windows XP

2006-04-27 Thread Zhao Peng
Hi, It turned out the culprit of my booting problem is nothing but a non-functional Windows XP installer CD, which is suspected by some kind souls here. With a working XP CD, no problem whatsoever in terms of booting into XP installation mode. Before I found out XP CD is what to be

CLARIFICATION: Re: remove linux, and then install Windows XP

2006-04-26 Thread Zhao Peng
Hi, First I wanted to thank you all for your help. The list is so great. When I said Then I put in Windows XP installation CD and restarted computer in my original post, I really meant that I booted the machine from Windows XP installation CD. The CD/DVD drive is the 1st bootable drive. I

Re: remove linux, and then install Windows XP

2006-04-26 Thread Zhao Peng
Tom, How can I find an correct number to put into count=? Thanks, Zhao Tom Buskey wrote: 3) I think on the linux rescue you can also do something like: dd if=/dev/zero of=/dev/hda bs=2048 count=1 You may have to up the count. ___ gnhlug-discuss

Re: CLARIFICATION: Re: remove linux, and then install Windows XP

2006-04-26 Thread Zhao Peng
that Windows installer disc in another machine to verify that it is in fact a good disc? -N On Wednesday 26 April 2006 11:13 am, Zhao Peng wrote: Hi, First I wanted to thank you all for your help. The list is so great. When I said Then I put in Windows XP installation CD and restarted

remove linux, and then install Windows XP

2006-04-25 Thread Zhao Peng
Hi, With either Fedora Core 4 or Ubuntu 5.10, none of my USB device (flashdrive, usb mouse, usb external harddrive, etc...) works. So I decided to remove linux then install Windows XP, and then install linux to have a dual-boot system. The 1st link of Google results of install windows

mouse problem on Redhat Enterprise

2006-04-24 Thread Zhao Peng
Good morning, I have a switch console (Belkin) which enable me to use only one mouse and one keyboard for a windows machine and a linux box. I'm having a problem with the mouse (ps/2) on linux box (RedHat Enterprise). Rehat can recognize it, but I just can't move cursor around as I intend

[fixed] mouse problem on Redhat Enterprise

2006-04-24 Thread Zhao Peng
Hi, I just wanted to let you know that I deleted old mouse setting during the boot-up and it then automatically re-configured the mouse setting, and now it works. Thanks, Zhao ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org

how to list file and sort by filename using ls

2006-04-24 Thread Zhao Peng
Now I should say good afternoon :) Using either ls -ul or ls -cl(which are supposed to sort by name according to manual, if I understood and used correctly), I just can't list files and sort them by filenames. Google results of key word sort by name linux ls is pretty much the same as man

how to list file and sort by filename using ls

2006-04-24 Thread Zhao Peng
output of echo $LANG: en_US.UTF-8 LANG=C ls -ul does do what I expected to do. What does C mean? character? Thank you, Kevin. Zhao 1: can you show us the output of the following: echo $LANG 2: Does this do what you want?: LANG=C ls -ul I'll bet that the output of

list of commands utilities [WAS: change file names]

2006-02-22 Thread Zhao Peng
Hello All, With the recent change file names experience, I'm wondering if there is a simply way to get a comprehensive list of A*L*L available commands utilities on a given linux OS.(Mine is Red Hat Enterprise). If so, how? If I have the list, I definitely will go through it to see if I

Re: list of commands utilities [WAS: change file names]

2006-02-22 Thread Zhao Peng
Bruce, type the tab key twice worked well on my system, thank you! I have 2 different userid on the system. One has Display all 2430 possibilities, another one has Display all 2457 possibilities. Why are they different? (Because some commands are not available for some userid?) Zhao

how to make a computer to function as a router

2006-02-06 Thread Zhao Peng
Hi, all linux experts:I have 2 computers (A B)A:a desktop (running Fedora Core 4), has 2 ethernet cards. (When I installed Fedora Core 4 on A, I chose server among 4 installation types, and I chose DHCP for both ethernet cards.) One card is connected to a Motorala cable modem via a Cat5 cable.

Re: a question about evim

2006-01-25 Thread Zhao Peng
Hi,Thanks for pointing out that the filename~ file is actually the backup file. So I agree with you that it would be safe not to overriding this behavior.Thank you again for prompt reply. ZhaoOn 1/25/06, Michael Nolin [EMAIL PROTECTED] wrote: --- Zhao Peng [EMAIL PROTECTED] wrote: Hello, I have

Re: extract string from filename

2006-01-13 Thread Zhao Peng
: Zhao Peng writes: I'm back, with another extract string question. //grin find FOLDERNAME -name \*sas7bdat -print | sed 's/.*\///' | cut -d _ -f 2 | sort -u somefile.txt or perl -MFile::Find -e 'find(sub{$string2 = (split /_/)[2]; $seen{$string2}++; }, @ARGV); map { print $_\n

extract string from filename

2006-01-12 Thread Zhao Peng
Hi all, I'm back, with another extract string question. //grin I have almost 1k small files within one folder. The only pattern of the file names is: string1_string2_string3_string4.sas7bdat Note: 1, string2 often repeat itself across each file name For example: abc_st_nh_num.sas7bdat

extract string

2006-01-10 Thread Zhao Peng
Hi Suppose that I have a file called abc.txt, which contains the following 5 lines (columns are delimited by ,) name,age,school jerry ,21,univ of Vermont jesse,28,Dartmouth college jack,18,univ of Penn john,20,univ of south Florida My OS is RedHat Enterprise, how could I extract the string

Re: extract string

2006-01-10 Thread Zhao Peng
-- From: Whelan, Paul [EMAIL PROTECTED] Like so: cat abc.txt | cut -d, -f3 Thanks. -Original Message- From: Zhao Peng [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 11:51 AM To: gnhlug-discuss@mail.gnhlug.org Subject: extract string Hi Suppose that I

Re: Follow-up: Red Hat / Fedora dual boot

2006-01-10 Thread Zhao Peng
Ben, The content of /etc/redhat-release file shows: Red Hat Enterprise Linux AS release 4 (Nahant Update 2) Thank you. Zhao Ben Scott wrote: [CC'ing the list with the OP's permission. Please include the list in any replies.] On 1/2/06, Zhao Peng [EMAIL PROTECTED] wrote: Thank you

Re: extract string

2006-01-10 Thread Zhao Peng
Hi All, First I really cannot be more grateful for the answers to my question from all of you, I appreciate your help and time. I'm especially touched by the outpouring of response on this list., which I have never experienced before anywhere else. Secondly I'm sorry for the big stir-up as

Re: Follow-up: Red Hat / Fedora dual boot

2005-12-30 Thread Zhao Peng
Hi Jerry, Thanks for your suggestions. Below is what I did. 1 regular boot up from Knopixx 2 bring up konsole 3 su - 4 swapoff /dev/hda6 5 qtparted For step 5, I got a line saying qtparted: cannot connect to X server So I started qtparted via K menu - systems, and tried to resize hda4

Re: Follow-up: Red Hat / Fedora dual boot

2005-12-30 Thread Zhao Peng
solution to solve the problem above. The whole dual-boot thing has been time-consuming, and I think it's time for me to forget it and get some real work done. Thank you all again. Zhao On 12/30/05, Neil Schelly [EMAIL PROTECTED] wrote: On Friday 30 December 2005 09:42 am, Zhao Peng wrote: 1

Follow-up: Red Hat / Fedora dual boot

2005-12-29 Thread Zhao Peng
Hi, I'm back to bug you guys on this thread. (BTW, It's very likely that I may use some terms incorrectly, due to my unfamiliarity with linux. Sorry about that. :) ) In case you may forget, let me repeat my situation: only 1 hard drive, and only RedHat Enterprise installed on it, and no

any good light shareware/freeware to detect hardware configuration?

2005-12-16 Thread Zhao Peng
Hi,This morning around 11:00am I'm going to buy an used desktop.Before I make the purchase, I hope to know its hardware specifics.So could anyone please shed some light on what small shareware/freeware I can try to detect hardware configuration? Thank you very much!ZhaoBTW,The seller asks for

Re: any good light shareware/freeware to detect hardware configuration?

2005-12-16 Thread Zhao Peng
to buy a new system :) Thanks, Zhao Zhao Peng wrote: Hi, This morning around 11:00am I'm going to buy an used desktop. Before I make the purchase, I hope to know its hardware specifics. So could anyone please shed some light on what small shareware/freeware I can try to detect hardware