#!/bin/bash echo "Digues el fitxer" read fitxer expr $(tr "\n" + < $fitxer | sed 's/+/ + /g'; echo 0)