12345678910111213141516171819202122232425262728293031323334353637 |
- #! /bin/bash
- cursordir="$1"
- linksfile="cursorlinks"
- sed -e 's/#.*$//' "${linksfile}" \
- | grep -v '^[[:space:]]*$' \
- | (cd "${cursordir}" ;
- while read orig new ; do
- if [ $VERBOSE ] ; then
- printf "Creating symlink of %s at %s\n" "$orig" "$new" ;
- fi
- ln -sf "$orig" "$new" ;
- done)
|