Search Results

Search: Posts Made By: ccp
3
2,164
Posted By ccp
Xargs
Hi,
can anyone tell me in detail ?

what the following do in detail ?
I am trying to get a largest number in a list

Thanks
Tao


LARGEST=$(echo $* | xargs -n1 | sort -nr | tail -1)
1,613
Posted By ccp
Simple Perl Topic
Hi, I am practicing a very simple perl programming, what i want to do is reverse the string

what is wrong with the following
Thanks


$string = "abcdef";
@array = split(//, $string);
$length...
5,598
Posted By ccp
tyler it seems not right "I love yahoo"...
tyler

it seems not right

"I love yahoo" becomes " I love yah" because "o" appears in love once
so "I am tech savvy" should become " I am tech savy"
Thanks
CC
5,598
Posted By ccp
To make it simple if original input is "I...
To make it simple

if original input is "I love yahoo"
I need remove duplicate words
so it will become

I love yah
5,598
Posted By ccp
remove duplicate
Hi,

I am tryung to use shell or perl to remove duplicate characters
for example , if I have " I love google" it will become I love ggle"
or even "I loveggle" if removing duplicate white space
...
1,575
Posted By ccp
logic
Hi, this is chris

Thank you foir your response about logic question
can you write a program?
you sem use good approach
thanks

Chris
1,575
Posted By ccp
logic question
Hi, this is logic question, not sure anyone can answer

I have 5 balls, and balance in front of me, this 5 balls look the same, but one of them is heavier, I need to use balance to find the heavier...
1,699
Posted By ccp
CPU usage
can anyone tell me How to check memory and CPU usage of a certain process
4,353
Posted By ccp
unix questions
Hi

I got asked over the phone for interview
can anyone answer the following

#1 What is the command to copy files from 1 Unix machine to another Unix machine, providing that the 2 machines are...
3,033
Posted By ccp
Kevin, can you reread the question again, I need...
Kevin, can you reread the question again, I need to ask user question "One time" only, also should I use some function like rand ()?

collect the integer response, evaluate and notify the user if...
3,033
Posted By ccp
Can I do it this way? #!/usr/bin/perl ...
Can I do it this way?

#!/usr/bin/perl

print "\nplease enter first number, second number, enter M for multiplication, A for addition,S for substraction, and finally your answer";


chomp (...
3,033
Posted By ccp
writing math testing program
Can anyone create a program that
would test the math skills of the user. Assume that it would test integer addition, The program should ask the question,collect the integer response, evaluate and...
2,357
Posted By ccp
for looping
I run into a issue when I try to do sorting of the following with ascending order, one round of for looping seems not working, anyone knows how to use shell or perl?

$array = (5,0,3,2,7,9,8)
1,542
Posted By ccp
perl scripting
Hi

does anyone know how to ouput "I love scripting" to "scripting love I"
without using reverse() function in perl?
Thanks
9,035
Posted By ccp
Ld_library_path
Hi, can anyone explain this terrm? should we setup it ?
Thanks
3
2,596
Posted By ccp
But I would assume I don't know any intergers in...
But I would assume I don't know any intergers in the array
so I need to make sure no intergers is last than 10, if so, the game is over,
if not, we can use double loop? how about if we don't know...
3
2,596
Posted By ccp
array
If I am given an array which contains 10 positive intergers, how to write in Unix shell returning any two numbers which sum up as 10, how about in perl which is easier
Thanks
5,074
Posted By ccp
output string in reversing order
If I have string { I_love_shell_scripts}
anyone knows how to have output {stpircs_llehs_evol_I}
by using shell and perl ?I know in perl, there is reverse() funcation, but
can it be done by not...
1,868
Posted By ccp
shell scripts help
Hi, I am not experienced in shell scripts, I hope someone can give some hint for the following problem

I have html file like this

<html>
<body>
Some stuff
More stuff
<pre>
A
B
</pre>...
Showing results 1 to 19 of 19

 
All times are GMT -4. The time now is 05:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy