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 dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by stibitz

  1. stibitz

    how to convert character to number in the shell?

    answering my own question here... secs=$(print $elapsed | cut -c5-6) where $elapsed might = "14:21:36" at this point, secs="36" and temp=$(( $secs * 60 )) won't work. if first invocation of secs is preceded by, integer secs shell converts(?) it to a number when assigned. Well, whatever it...
  2. stibitz

    how to convert character to number in the shell?

    The shell seems to know when I cut a "number" from a string, that it is indeed not a number. Is there a way to use it as a number? Convert it through another variable assignment to be a number?

Part and Inventory Search

Back
Top