Add include folder for extra functions
This commit is contained in:
9
include/common/slash_to_array.inc
Normal file
9
include/common/slash_to_array.inc
Normal file
@ -0,0 +1,9 @@
|
||||
# This function creates an array of a *nix path
|
||||
# Example: /home/user/bin becomes an array of ( home user bin )
|
||||
|
||||
function slash_to_array () {
|
||||
|
||||
sta=( $( echo ${1} | sed -e "s/\//\ /g" ) )
|
||||
# return ${sta}
|
||||
|
||||
}
|
Reference in New Issue
Block a user