Sponsored Content
Full Discussion: BC
Top Forums Shell Programming and Scripting BC Post 302579677 by cero on Tuesday 6th of December 2011 10:35:10 AM
Old 12-06-2011
This looks more like a mathematical puzzle.
Gareth, are you looking for a bc expression that subtracts 24 from your input value and returns the remainder of the division by -48 unless the remainder would be 0 in which case you'd like to return -48?
Such an expression could look like this:
Code:
( ( $usr_input - 24 ) % -48 ) - ( 48 * !( ( $usr_input - 24 ) % -48 ) )

This User Gave Thanks to cero For This Post:
 
html2po(1)						      Translate Toolkit 1.9.0							html2po(1)

NAME
html2po - convert HTML files to Gettext PO localization files SYNOPSIS
html2po [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-P|--pot] [-u|--untagged] [--keepcomments] [--duplicates DUPLICATESTYLE] DESCRIPTION
See: http://translate.sourceforge.net/wiki/toolkit/html2po for examples and usage instructions OPTIONS
--version show program's version number and exit -h/--help show this help message and exit --manpage output a manpage based on the help --progress show progress as: dots, none, bar, names, verbose --errorlevel show errorlevel as: none, message, exception, traceback -i/--input read from INPUT in htm, html, xhtml formats -x/--exclude exclude names matching EXCLUDE from input paths -o/--output write to OUTPUT in po, pot formats -P/--pot output PO Templates (.pot) rather than PO files (.po) -u/--untagged include untagged sections --keepcomments preserve html comments as translation notes in the output --duplicates what to do with duplicate strings (identical source text): merge, msgctxt (default: 'msgctxt') Translate Toolkit 1.9.0 html2po(1)
All times are GMT -4. The time now is 05:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy