Write me POSIX-shellscript to convert Celsius to Kelvin.
user
Here’s a script that’ll output the temperature in Kelvin given a temperature in Celsius:
```sh
#!/usr/bin/env sh
if [ "$#" -ne 1 ]; then
    echo "Wrong usage! Usage: $0 <Temperature in Celsius>" >&2
fi
echo $(($1 + 273))
```
Note that this program doesn’t compute the exact value, as POSIX shell cannot perform arithmetic on fractional numbers.
If your target systems have `bc` installed, you can use the following script:
```sh
#!/usr/bin/env sh
if [ "$#" -ne 1 ]; then
    echo "Wrong usage! Usage: $0 <Temperature in Celsius>" >&2
fi
echo "$1 + 273.15" | bc
```
assistant