update March 4, 2018
NAME
makelinks.sh - Create symbolic links in the current directory, pointing to files in a source directory
SYNOPSIS
makelinks.sh sourcedir [regular expression]

DESCRIPTION

For each file in sourcedir, create a symbolic  link in the current directory that points to that file in sourcedir.

For most purposes, it is best to specify sourcedir as relative path, rather than as a fully-qualified path. That way, when a source directory and the current directory are part of a relocatable file tree, the entire tree can be  copied to a new system without changing the links.

If the symbolic link already exists in the current directory, it is removed, and a new link created in its place.

If a regular expression is specified, it is NOT evaluated by globbing. Thus, if you want to include characters that have a meaning in regular expressions, you must escape them.


EXAMPLES

        makelinks.sh ../pkg/last/scripts

        will make links in the current directory to all files in ../pkg/last/scripts

        makelinks.sh ../pkg/hisat2 .py

        will make links in the current directory to all files in ../pkg/hisat2 whose names end in .py
makelinks.sh  ../..  \.param

will match all files two directoies up, whose names end in  '.param', whereas

makelinks.sh  ../..  .param

will match all files two directories up, whose names are a single character, followed by 'param'.

NOTES


AUTHOR
Dr. Brian Fristensky
Department of Plant Science
University of Manitoba
Winnipeg, MB  Canada R3T 2N2
frist@cc.umanitoba.ca
http://home.cc.umanitoba.ca/~frist