Created
May 29, 2016 17:08
-
-
Save orca8/8d068414b99179061e3c2d38ece43a13 to your computer and use it in GitHub Desktop.
bash symlink_migrate.sh /usr/tmp
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
#!/bin/bash | |
set -eu | |
readonly FIND_PATH=${1} | |
links=() | |
while read -r f | |
do | |
links+=("$f") | |
done < <(find ${FIND_PATH} -type l) | |
echo "${links[@]}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment