How to get the file name?
by Nirmala[ Edit ] 2010-01-25 11:56:52
How to get file name using shell scripting
$0 is used to print the filename
Steps:
(*)Create the file
-> Open terminal type -> vi ss.sh
-> Type echo $0
-> Save and Quit using
:wq!
(*) Execute ss.sh file
-> sh ss.sh
(*) Now it will display filename