Skip to content

Instantly share code, notes, and snippets.

@phlegx
Created July 23, 2012 13:44
Show Gist options
  • Save phlegx/3163661 to your computer and use it in GitHub Desktop.
Save phlegx/3163661 to your computer and use it in GitHub Desktop.
array_paths_removed=()
i=0
for paths in ${array_paths[@]}
do
array_paths_removed[i]=${paths%/*}
i=i+1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment