Hi,
I wanna write a Bourne shell script that can display a file's
name and its location, i.e. its directory path. The outline of the
shell script, named getfilename, is like
################################
#!/bin/sh
#program name=getfilename
for file in $*
do
[statements that can help display the file's name and its
directory path]
done
################################
so that when I apply the script to a file as
it gives meQuote:>getfilename file1
Hope that I have made the requirements clear and easy to understand.Quote:>pathname/file1
Thanks in advance.
David