/usr/bin/ncargfile is in ncl-ncarg 6.4.0-9.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | #!/bin/csh -f
#
# $Id: ncargfile.csh,v 1.5 2008-07-27 00:59:06 haley Exp $
#
# Copyright (C) 2000
# University Corporation for Atmospheric Research
# All Rights Reserved
#
# The use of this Software is governed by a License Agreement.
#
set file_dir=`ncargpath database`
if ($status != 0) then
exit 1
endif
if (! -d "$file_dir") then
echo "Example directory <$file_dir> does not exist."
exit 1
endif
if ($#argv < 1) then
echo "usage: ncargfile [-all] file(s)"
echo ""
echo "See <man ncargfile>"
exit
endif
set file_list=( ezmap_area_ids )
set files
while ($#argv > 0)
switch ($1)
case "-all":
shift
set files=($file_list)
breaksw
case "-*":
echo "$0 : Unknown option <$1>"
exit 1
breaksw
default:
set files=($files $1)
shift
breaksw
endsw
end
foreach file ($files)
################################################################
#
# Code for handling various files
#
################################################################
echo ""
echo "Copying NCAR Graphics File <$file>..."
echo ""
cp $file_dir/$file .
end
|