bash : name : fix extension erasing.
This commit is contained in:
parent
30e0c964a2
commit
dbf1e70960
|
@ -21,7 +21,7 @@ name()
|
|||
sed -e "s/ /_/g" \
|
||||
-e "s/[^[:alnum:]\._-]//g" \
|
||||
-e "s/_\+/_/g" -e "s/\.\+/\./g" -e "s/-\+/-/g" \
|
||||
-e "s/_-/_/g" -e "s/-_/_/g" -e "s/\.-/_/g" -e "s/-\./_/g" -e "s/\._/_/g" -e "s/_\./_/g" \
|
||||
-e "s/_-/_/g" -e "s/-_/_/g" -e "s/\.-/\./g" -e "s/-\./\./g" -e "s/\._/\./g" -e "s/_\./\./g" \
|
||||
-e "s/_\+/_/g" \
|
||||
-e "s/^_//" -e "s/_$//"
|
||||
)
|
||||
|
|
Reference in a new issue