README for url_io Bash script url_io is a script for use by the BIRN community that allows users to perform simple transfers using the BIRN URL naming convention for files and directories. Define URL_VERBOSE in script or in environment to enable verbose output. The primary functions are: - url_input $birn_url $local_path : Copies data from location specified in $birn_url to $local_path - url_output $local_path $birn_url : Copies data in $local path to location specified by $birn_url In addition, the following internal functions are available to the user: - url_get_type $birn_url : Determine type of BIRN url passed as input - RETURNS: Enumerated value specifying URL type - url_parse $birn_url : Parses BIRN URL - RETURNS: enumerated type of URL - Places absolute path from URL in global $URL_PATH - url_print_type $type_num : Given a number paramter, does a reverse lookup to print type of URL The following global variables are defined by the script: - Global defines - enumerate type variables - URL_DIR=1 - URL_FILE=2 - URL_SRB_DIR=3 - URL_SRB_FILE=4 - URL_ERROR=99 - Global Variables used for passing information - URL_PATH : contains the absolute path of the last parsed URL