Code:
for f in *.txt; do
desc=`echo ${f%.*} | sed 's/-/ /g'`
gist --description \"$desc\" $f
done
bascially im trying to combine line 2 and 3 into 1 line without it stripping out --
it takes file-name-here.txt and uses the description by stripping - with spaces and uses that as the description for the upload to gist.github.com
so bascially im trying to ignore -- (description).