2008-12-27から1日間の記事一覧
# variable substitution somevar="bu&^*ck" # variable with mucky characters print ${somevar//[^[:alnum:]]/_} # replace all non-alphanumerics with _ echo ${file##*/} # echo just the file name echo ${texfilepath%/*.*} # echo just the path ech…