qsgen2/include/common/slash_to_array.inc

9 lines
207 B
PHP
Raw Normal View History

2024-01-28 18:32:26 +01:00
# 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}
}