I just looked it up, it is ${%} and not ${#}. Here is an example,
for i in *.jpg; do
filename=${i%.jpg}
echo $filename
doneSharad PS: This is how filename matching was boing done in /etc/init.d scripts (long time back, don't know about now). --~--~---------~--~----~------------~-------~--~----~ [EMAIL PROTECTED] mailing list -- group http://groups.google.com/group/iitdlug -~----------~----~----~----~------~----~------~--~---
