Usage: get_files [options] [file_list] [options] [file_list] ...

  Options:
  -jo        : get joboption files from JOBOPTSEARCHPATH
  -data      : get data files from DATAPATH
  -scripts   : get scripts from PATH
  -xmls      : get XML files form XMLPATH
  -copy      : switch to copying files [default]
  -symlink   : switch to symlinking files
  -keep      : keep existing files, do not overwrite [default]
  -remove    : permit to overwrite files in current directory
  -warn      : print warning if more than one file matches specification. Slow.
  -list      : list all matches but do not copy anything
  -help      : print this help text

This script copies files from search path to the current directory.
Command line is parsed from left to right; each option found sets
defaults to process the following (possibly zero length) 'file_list'.
In any case, the first match is returned for each file requested.
If no option is specified, file is looked up in all areas; this is SLOW.
Duplicates are reported only if '-warn' was specified. This is slow.
Partial directory specification can be specified to resolve ambiguity.
Wildcards are permitted in file names/directories.

  Examples:

% get_files -symlink -jo jobOptions.py -scripts -data  # example from CMT
% get_files -jo -list '*Example/*.py'
% get_files -jo -warn ReadDBS.py                       # two files match
% get_files -jo -remove InDetAlignGenAlgs/ReadDBS.py   # ambiguity resolved

-- RobGardner - 07 Feb 2008
Topic revision: r1 - 07 Feb 2008, RobGardner
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback