(t)csh command line arguments issues

view story

http://www.unix.com – 1. The problem statement, all variables and given/known data: create a shell script, chExt.sh that takes one or more parameters, where the first is a desired extension and the remainder are names of files to be renamed. For each file in the command line, this script should rename the file, as above, if the file exists or print the error message described in the previous step if the file does not exist. For example, ls > crocodile.foo echo bark > dingo.bar ./chExt.sh dat crocodile.foo bogusName.foo dingo.bar should result in crocodile.foo being renamed crocodile.d (HowTos)