Skip to content

Instantly share code, notes, and snippets.

tousinn

Block or report user

Report or block tousinn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tousinn
tousinn / gist:4679043
Last active Dec 11, 2015
How to get the File Name, Extension of the File , the File Path under shell
View gist:4679043
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}`
@tousinn
tousinn / spdoc.txt
Created Jan 24, 2013
The explanation of parameters which are used to make the oracle statspack report.
View spdoc.txt
-----------------------------------------------------------------------
Oracle11g Server
Release 11.1
Production
-------------------------------------------------------------------------
You can’t perform that action at this time.