#!/bin/bash filename="$1" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" cat "$filename" | $DIR/ipfs add --noleaves