How to get the file name?

by Nirmala 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

Tagged in:

808
like
0
dislike
0
mail
flag

You must LOGIN to add comments