Has anybody seen this Korn shell syntax for a for loop
for (( i=0; i<10; i++ ))
do
print $i
done
An employee of the company I'm working for at the moment just asked me why he got a "syntax error: `((' unexpected" message.
I showed him how to do it as a while loop but I am intrigued as to...
Hi peeps
About a decade ago I wrote
ifstream fin;
if (NULL == inputStream)
{
fin.attach(0);
inputStream = "stdin";
}
else
{
fin.open(inputStream, ios::in);
}
inputStream was NULL unless a filename had been specified on the command line. The...
Peeps
I have a Korn shell script that runs on an HP-UX machine. It loops over a set of machines using remsh to log on to each machine, as a specified user, and then runs a sequence of commands/scripts.
Unfortunately it only executes the first sequence (it only visits the first machine): I can...
I have some email addresses and I want to strip out the name. They are all similar format: forename dot surname at domain, and they are usually all lower case. I know it's very old fogeyish of me but I thought it would be better to have the first letter of the extracted names in uppercase. Below...
Does anybody know if there is a perl function for returning DOS/Windows file attributes (in particular, hidden)?
PS: I've done a few googles and searched the perl docs and this site and not found anything but please excuse my ignorance if this is a standard function that any fewl shud kno...
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.