Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: risby
  • Content: Threads
  • Order by date
  1. risby

    new "for" loop syntax in Korn shell

    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...
  2. risby

    defaulting ifstream variable to standard input

    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...
  3. risby

    remsh not finishing

    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...
  4. risby

    Ensure initial letter uppercase

    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...
  5. risby

    DOS/Windows hidden files

    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...

Part and Inventory Search

Back
Top