#!/usr/bin/env bash symbol="$1" if [ ! "$symbol" ]; then symbol='#' fi sed "s!^\($symbol\)*!!"