I wrote:
I'm trying to write a shell script (in a tcsh) which uses a filename
argument without its extension:

   filename=$1:r
   echo filename

doesn't work. What is the right way to do it?

This works (it just needed the #!):

  #!
  echo $1:r

~/pp > shellscript boo.com
boo


_______________________________________________
MacOSX-talk mailing list
MacOSX-talk@omnigroup.com
http://www.omnigroup.com/mailman/listinfo/macosx-talk

Reply via email to