Jpp  18.6.0-rc.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
getLs.sh File Reference

Go to the source code of this file.

Functions

then fatal Invalid path $DIR
fi if &&[["$OPTION"!=""]]&&then
fatal Invalid option $OPTION
fi typeset Z8 ID typeset Z8
MINRUN typeset Z8 MAXRUN 
if (($#==1))
 
 elif (($#==3))
 
then ls $DIR $ID $TYPE sed s _ elif (($#==4))
 
then ls $DIR $ID $TYPE _
$VERSION sed n s * 
elif (($#==5))
 
then ls $DIR $ID $TYPE _
$VERSION $MINRUN sed n s * 
elif (($# >=6))
 
do if ((${BUFFER:r} > ${FILENAME:r}))
 

Variables

 script
 
then usage $script< path >[
< detector identifier >[< type >
[version[< min run >[< max run >
[option]]]]]] nUtility script
to list files in archive
nPossible options short or
long fi case set_variable 
OPTION {argv[7]}
 
&let MAXRUN =" ${argv[6]}"
 
&let MINRUN =" ${argv[5]}"
 
&set_variable VERSION {argv[4]}
 
&set_variable TYPE {argv[3]}
 
&let ID =" ${argv[2]}"
 
&set_variable DIR {argv[1]:a}
 
*fatal Wrong number of
arguments esac 
if [[!-d $DIR]]
 
then ls $DIR grep E
 
then ls $DIR $ID
 
then FILENAME
 
then case _ $OPTION in _ echo $FILENAME
 

Function Documentation

then fatal Invalid path $DIR fi if&& [[ "$OPTION" != "" ]] && then fatal Invalid option $OPTION fi typeset Z8 ID typeset Z8 MINRUN typeset Z8 MAXRUN if ( ($#==1)  )
elif ( ($#==3)  )
then ls $DIR $ID $TYPE sed s _ elif ( ($#==4)  )
then ls $DIR $ID $TYPE _ $VERSION sed n s* elif ( ($#==5)  )
then ls $DIR $ID $TYPE _ $VERSION $MINRUN sed n s* elif ( ($# >=6)  )
do if ( (${BUFFER:r} > ${FILENAME:r})  )

Variable Documentation

script
Initial value:
=${0##*/}
source ${0%${script}}ulib.sh
set_variable: DEBUG ARCHIVE_DEBUG 2
if do_usage $*
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
#define DEBUG(A)
Message macros.
Definition: JMessage.hh:62

Definition at line 5 of file getLs.sh.

then usage $script<path> [<detector identifier> [<type> [version [<min run> [<max run> [option]]]]]] nUtility script to list files in archive nPossible options short or long fi case set_variable OPTION {argv[7]}

Definition at line 18 of file getLs.sh.

& let MAXRUN =" ${argv[6]}"

Definition at line 19 of file getLs.sh.

& let MINRUN =" ${argv[5]}"

Definition at line 20 of file getLs.sh.

& set_variable VERSION {argv[4]}

Definition at line 21 of file getLs.sh.

& set_variable TYPE {argv[3]}

Definition at line 22 of file getLs.sh.

& let ID =" ${argv[2]}"

Definition at line 23 of file getLs.sh.

& set_variable DIR {argv[1]:a}

Definition at line 24 of file getLs.sh.

* fatal Wrong number of arguments esac if[[!-d $DIR]]

Definition at line 24 of file getLs.sh.

then ls $DIR grep E
Initial value:
{ANY_ID} | sed -n 's/^0*
elif (( $# == 2 ))
const int n
Definition: JPolint.hh:786

Definition at line 42 of file getLs.sh.

then ls $DIR $ID

Definition at line 46 of file getLs.sh.

then FILENAME
Initial value:
=""
for BUFFER in $(ls -1 $DIR/$ID/$TYPE/_$VERSION/$MINRUN/$MAXRUN)
esac done BUFFER
Definition: JMakePDF.sh:83
then ls $DIR $ID
Definition: getArchive.sh:89
then fatal The output file must have the wildcard in the e g root fi eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Definition: JCanberra.sh:48
then eval ls $DIR $ID $TYPE _
Definition: getArchive.sh:108

Definition at line 62 of file getLs.sh.

Definition at line 72 of file getLs.sh.