Hi,
I have a string e.g.
idiotboy|is|trying|to|count|how|many|pipes|are|in|this|string|
How can I count how many pipes there are in the string?
grep only returns the string itself
I can
While read pipe|;do tr -s "|" "|\n" $pipe|wc -l;done
but I thought there might be another way which is...
Hi,
If I install Red Hat Linux (latest version) on a server (pc) which is dual processor, will I experience any problems and more importantly, if I have an application that utilises paralell processing will this correctly be assigned both processors at run time?
Sorry for the vagueness...
Hi,
I have an Ultra 1. It is running Solaris 8. The OS is installed correctly and is behaving normally. I wish to connect it to my hub so that I can telnet to it from elsewhere within my house only.
My /etc/hosts looks like this
127.0.0.1 localhost
192.168.0.30 ultra1 loghost
169.254.164.12...
Hi,
I just bought a ultrasparc1. I noticed at boot up that the spec said that I had 128 megs ram. I was sold the machine thinking it had 256 megs ram. Do I need to do anything so that I can use that ram. I haven't looked inside the machine to confirm that there is in fact 256 ram. I...
Hi,
I've got the syntax for the case statement in korn shell (running on Solaris) but I can't figure out how to pose a question and read the answer as the input to the case statement. Do I just
print "Quesion:y/n"
read ans
ans="y"
case $ans in
y) print "blah...
Many thanks for the help. Is this .bashprofile right?
I can execute commands in their respective directories e.g.
/sbin/shutdown -h 1 whilst pwd = /sbin but not execute it elsewhere using shutdown -h 1. I should be able to shouldn't I?
Or am I being stupid?
.bashprofile
if [-f...
I have installed redhat Linux 6.2 on an 486 with no problems. No reported errors. However, whenever I try to invoke a command (e.g. adduser, shutdown, wall,) the command line informs me that no such command exists, despite everything being in my /sbin.
Can anyone help. My aim is to run...
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.