View Single Post
Old 10-09-2011, 09:17 AM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,339
anyone know perl or sed solution for this?

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).
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote