Code:
mungefilename ()
{
echo "$@" | sed s,:,\ -,g | tr \ /\* __+ | tr -d \'\"\?\[:cntrl:\]
}
What the hell does this mean? can someone please translate this for me? I know it converts characters to underscores or spaces or whatever you tell it to but I don't speak this language and I need a primer.
My goal is to just leave spaces alone and not convert them to underscores.
Basicly just not have any underscores.
What is the difference between what is above and this here below:
Code:
# don't convert spaces to underscores
mungefilename ()
{
echo "$@" | sed s,:,\ -,g | tr / _ | tr -d \"\?\[:cntrl:\]
}
Bookmarks