
February 17th, 2003, 08:42 PM
|
|
Junior Member
|
|
Join Date: Feb 2003
Posts: 4
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
HELP NEEDED in writing a script to rename a file.......
Hi,
I need some help in writing a shell script in a Bourne shell to do the following task,
prompts a user for the source and target files. If the absolute path is not given, then assume that the file is in the home directory. Should also check if have permissions to rename the file. If cannot execute the command for any reason, print the reason on the screen. If it is possible, rename the file.
I have been struggling to come up with a solution but can't get it working. Any help is really appreciated.
Thanks
|