This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.How to get the File Name | |
test_full_file_path="/home/doc/myfile.txt" | |
file_name=`basename ${test_full_file_path}` | |
or | |
file_name=${test_full_file_path##*/} | |
2.How to get the extension of the file | |
test_full_file_path="/home/doc/myfile.txt" | |
file_name=`basename ${test_full_file_path}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
----------------------------------------------------------------------- | |
Oracle11g Server | |
Release 11.1 | |
Production | |
------------------------------------------------------------------------- |